Skip to content

Commit ec79fe0

Browse files
committed
configure GitHub Action using tox-gh instead of tox-gh-actions
1 parent bdb639e commit ec79fe0

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

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

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

1414
steps:
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
15+
- uses: actions/checkout@v34
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
25+
- name: Test with tox
26+
run: tox

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
envlist = lint, py{38, 39, 310, 311, 312}
1212
isolated_build = True
1313

14-
[gh-actions]
14+
[gh]
1515
python =
1616
3.9: py39-extra
1717
3.10: py310-extra

0 commit comments

Comments
 (0)