Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize CI a bit.
Browse files Browse the repository at this point in the history
hameerabbasi committed Jun 10, 2023
1 parent a55651d commit be03463
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ jobs:
test:
defaults:
run:
shell: bash -l {0}
shell: bash -el {0}
strategy:
matrix:
os: [ubuntu-latest]
@@ -23,9 +23,9 @@ jobs:
NUMBA_BOUNDSCHECK: ${{ matrix.numba_boundscheck }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache conda
uses: actions/cache@v2
uses: actions/cache@v3
env:
# Increase this value to reset cache if ci/environment.yml has not changed
CACHE_NUMBER: 0
@@ -45,12 +45,11 @@ jobs:
use-mamba: true
- name: Install package
run: |
pip install -U setuptools wheel
pip install -e .[tests]
- name: Run tests
run: |
pytest --pyargs sparse
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
if: always()
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
@@ -60,13 +59,13 @@ jobs:
docs:
defaults:
run:
shell: bash -l {0}
shell: bash -el {0}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache conda
uses: actions/cache@v2
uses: actions/cache@v3
env:
# Increase this value to reset cache if ci/environment.yml has not changed
CACHE_NUMBER: 0
@@ -85,7 +84,6 @@ jobs:
use-mamba: true
- name: Install package
run: |
pip install -U setuptools wheel
pip install -e .[docs]
- name: Run tests
run: |

0 comments on commit be03463

Please sign in to comment.