Skip to content

Commit

Permalink
Run CI (tox) on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Mar 28, 2022
1 parent 7b9d7d5 commit 462438a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ jobs:
tox:
name: CI tests via Tox

runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: ['ubuntu-20.04', 'macos']
py-ver-major: [3]
py-ver-minor: [6, 7, 8, 9, 10]
step: [lint, unit, bandit, mypy]
Expand All @@ -37,7 +38,7 @@ jobs:
fetch-depth: 0

- name: Set up Singularity
if: ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.step == 'unit' || matrix.step == 'mypy' }}
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: ${{ env.singularity_version }}
Expand All @@ -61,7 +62,7 @@ jobs:
pip install tox tox-gh-actions
- name: MyPy cache
if: ${{ matrix.step == 'mypy' }}
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.step == 'mypy' }}
uses: actions/cache@v3
with:
path: .mypy_cache/${{ env.py-semver }}
Expand All @@ -71,7 +72,7 @@ jobs:
run: tox

- name: Upload coverage to Codecov
if: ${{ matrix.step == 'unit' }}
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.step == 'unit' }}
uses: codecov/[email protected]
with:
fail_ci_if_error: true
Expand Down

0 comments on commit 462438a

Please sign in to comment.