Skip to content

Commit

Permalink
Update GitHub Actions and dependency versions. (#901)
Browse files Browse the repository at this point in the history
* Update GitHub Actions versions.

* Update zarr.

* Rerun CI with new Codecov token.

* Update coverage.

* Update pre-commit hooks for good measure.

* Run codecov with token.
  • Loading branch information
bdice committed Mar 3, 2023
1 parent a3036b7 commit 9febbe8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
run:
python -m pip install signac --progress-bar off --no-index -f dist/
- name: Run MongoDB
uses: supercharge/mongodb-github-action@1.7.0
uses: supercharge/mongodb-github-action@1.9.0
- name: Run Redis
uses: supercharge/redis-github-action@1.4.0
uses: supercharge/redis-github-action@1.5.0
- name: Test with pytest
run:
python -m pytest -v tests/
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: release
path: dist/
Expand All @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: release
path: dist/
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ jobs:
run: |
pip install -e .
- name: Run MongoDB
uses: supercharge/mongodb-github-action@1.7.0
uses: supercharge/mongodb-github-action@1.9.0
if: ${{ matrix.os == 'ubuntu-latest' && matrix.config.dependencies != 'minimal' }}
- name: Run Redis
uses: supercharge/redis-github-action@1.4.0
uses: supercharge/redis-github-action@1.5.0
if: ${{ matrix.os == 'ubuntu-latest' && matrix.config.dependencies != 'minimal' }}
- name: Test with pytest
run: |
pytest --cov=signac --cov-config=pyproject.toml --cov-report=xml tests/ -v
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.991'
rev: 'v1.0.1'
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-test-optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pymongo==4.3.3; implementation_name=='cpython'
redis==4.5.1
ruamel.yaml==0.17.21
tables==3.8.0; implementation_name=='cpython'
zarr==2.13.6; platform_system!='Windows'
zarr==2.14.2; platform_system!='Windows'
2 changes: 1 addition & 1 deletion requirements/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coverage==7.1.0
coverage==7.2.1
pytest==7.2.1
pytest-cov==4.0.0
pytest-xdist==3.2.0

0 comments on commit 9febbe8

Please sign in to comment.