Skip to content

Commit

Permalink
Merge pull request #272 from boutproject/remove-codecov
Browse files Browse the repository at this point in the history
No CI failure when coverage upload fails
  • Loading branch information
johnomotani authored Jan 9, 2023
2 parents afb5ba6 + 5fcb4da commit 4e4857f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: always()
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', 3.x]
pip-packages:
- "setuptools pip pytest pytest-cov coverage codecov boutdata xarray numpy>=1.16.0"
fail-fast: false
Expand All @@ -43,8 +43,6 @@ jobs:
pytest -v --long --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true


pytest-min-versions:
Expand Down Expand Up @@ -76,8 +74,6 @@ jobs:
pytest -v --long --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true


# Need to tidy up the things that flake8 finds before we activate this
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: always()
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', 3.x]
pip-packages:
- "setuptools pip pytest pytest-cov coverage codecov boutdata xarray numpy>=1.16.0"
fail-fast: false
Expand All @@ -43,8 +43,6 @@ jobs:
pytest -v --long --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true


pytest-min-versions:
Expand Down Expand Up @@ -76,8 +74,6 @@ jobs:
pytest -v --long --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true


# Need to tidy up the things that flake8 finds before we activate this
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
if: always()
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
python-version: [3.8, 3.9, '3.10', 3.x]
pip-packages:
- "setuptools pip pytest pytest-cov coverage codecov boutdata xarray numpy>=1.16.0"
- "setuptools pip pytest boutdata xarray numpy>=1.16.0"
fail-fast: true

steps:
Expand All @@ -34,11 +34,7 @@ jobs:
- name: Test with pytest
run: |
pip install pytest
pytest -v --long --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
pytest -v --long
pytest-min-versions:
Expand All @@ -49,7 +45,7 @@ jobs:
matrix:
python-version: [3.8]
pip-packages:
- "setuptools pip pytest pytest-cov coverage codecov boutdata==0.1.4 xarray==0.18.0 dask==2.10.0 numpy==1.18.0 natsort==5.5.0 matplotlib==3.1.1 animatplot==0.4.2 netcdf4==1.4.2 Pillow==7.2.0" # test with oldest supported version of packages. Note, using numpy==1.18.0 as a workaround because numpy==1.17.0 is not supported on Python-3.7, even though we should currently support numpy==1.17.0.
- "setuptools pip pytest boutdata==0.1.4 xarray==0.18.0 dask==2.10.0 numpy==1.18.0 natsort==5.5.0 matplotlib==3.1.1 animatplot==0.4.2 netcdf4==1.4.2 Pillow==7.2.0" # test with oldest supported version of packages. Note, using numpy==1.18.0 as a workaround because numpy==1.17.0 is not supported on Python-3.7, even though we should currently support numpy==1.17.0.
fail-fast: true

steps:
Expand All @@ -67,11 +63,7 @@ jobs:
- name: Test with pytest
run: |
pip install pytest
pytest -v --long --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
pytest -v --long
# Need to tidy up the things that flake8 finds before we activate this
Expand Down

0 comments on commit 4e4857f

Please sign in to comment.