Skip to content

Commit

Permalink
Add GA build matrix for os and Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
oana-ctrl committed Jul 4, 2024
1 parent 1fa21ef commit 295dc06
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# Same key-value pairs as in "Defining Our Workflow" section
name: CI

# We can specify which Github events will trigger a CI build
on: push

# now define a single job 'build' (but could define more)
jobs:

build:

# we can also specify the OS to run tests on
runs-on: ubuntu-latest
# Here we add the matrices definition:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10", "3.11"]

# a job is a seq of steps
# Here we add the reference to the os matrix values
runs-on: ${{ matrix.os }}

# Same key-value pairs as in "Defining Our Workflow" section
steps:

# Next we need to checkout out repository, and set up Python
# A 'name' is just an optional label shown in the log - helpful to clarify progress - and can be anything
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

# Here we add the reference to the python-version matrix values
python-version: ${{ matrix.python-version }}
# Same steps as in "Defining Our Workflow" section
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Test with PyTest
run: |
python3 -m pytest --cov=inflammation.models tests/test_models.py
python3 -m pytest --cov=catchment.models tests/test_models.py

0 comments on commit 295dc06

Please sign in to comment.