Skip to content

Commit 7fc76c0

Browse files
committed
First CI action
1 parent 937cb5f commit 7fc76c0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
# We can specify which Github events will trigger a CI build
4+
on: push
5+
6+
# now define a single job 'build' (but could define more)
7+
jobs:
8+
9+
build:
10+
11+
# we can also specify the OS to run tests on
12+
runs-on: ubuntu-latest
13+
14+
# a job is a seq of steps
15+
steps:
16+
17+
# Next we need to checkout out repository, and set up Python
18+
# A 'name' is just an optional label shown in the log - helpful to clarify progress - and can be anything
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python 3.11
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.11"
26+
27+
- name: Install Python dependencies
28+
run: |
29+
python3 -m pip install --upgrade pip
30+
python3 -m pip install -r requirements.txt
31+
32+
- name: Test with PyTest
33+
run: |
34+
python3 -m pytest --cov=inflammation.models tests/test_models.py

0 commit comments

Comments
 (0)