Skip to content

Commit

Permalink
Merge pull request #58 from jaraco/feature/optional-env
Browse files Browse the repository at this point in the history
Run tests with optional deps
  • Loading branch information
jaraco authored Feb 19, 2024
2 parents 9cb3091 + dba3d88 commit fd2000c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
deps:
- ""
- "optional"
include:
- python: "3.9"
platform: ubuntu-latest
Expand All @@ -47,7 +50,7 @@ jobs:
runs-on: ${{ matrix.platform }}
continue-on-error: ${{ matrix.python == '3.13' }}
env:
TOX_ENV: py
TOX_ENV: py${{ matrix.deps == 'optional' && '-optional' || '' }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
3 changes: 2 additions & 1 deletion optional-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
numpy>=1.10.2,<=2.0.0
pandas>=0.17.1,<=2.0.0
pandas>=0.17.1,<=3.0.0
PyArrow<16.0.0
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands =
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
py{37,38,39}-{optional}: -r{toxinidir}/optional-requirements.txt
{optional}: -r{toxinidir}/optional-requirements.txt


[testenv:docs]
Expand Down

0 comments on commit fd2000c

Please sign in to comment.