Skip to content

Commit

Permalink
Expand the OS and Python version matrix in CI (#164)
Browse files Browse the repository at this point in the history
* Expand OS and Python version matrix

* Upload coverage report only from one job
  • Loading branch information
milancurcic authored Apr 13, 2023
1 parent f9e6931 commit 85c3411
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ci-pygtm:
name: 'test'
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml
environment-name: clouddrift
- name: Unit testing
- name: Testing
shell: bash -l {0}
run: |
pip install coverage
coverage run -m unittest discover -s tests -p "*.py"
coverage xml
- name: Upload coverage reports to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml

0 comments on commit 85c3411

Please sign in to comment.