Skip to content

Commit bdb639e

Browse files
committed
rewrite GitHub Action using explicit reference to tox environment with -extra suffix
1 parent db5cdd0 commit bdb639e

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/github-actions-tox.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ jobs:
1212
python-version: ['3.9', '3.10', '3.11', '3.12']
1313

1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
python -m pip install pytest numpy pandas
24-
python -m pip install tox tox-gh-actions
25-
- name: Test with tox
26-
run: tox
15+
- uses: actions/checkout@v4
16+
- name: Setup Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python }}
20+
- name: Install tox and any other packages
21+
run: pip install tox pytest numpy pandas
22+
- name: Run tox
23+
# Run tox using the version of Python in `PATH`
24+
run: tox -e py${{ matrix.python}}-extra

0 commit comments

Comments
 (0)