Skip to content

Commit

Permalink
configure GitHub Action using tox-gh instead of tox-gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
astanin committed Sep 26, 2024
1 parent bdb639e commit ec79fe0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/github-actions-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox pytest numpy pandas
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py${{ matrix.python}}-extra
- uses: actions/checkout@v34
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy pandas
python -m pip install tox tox-gh
- name: Test with tox
run: tox
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
envlist = lint, py{38, 39, 310, 311, 312}
isolated_build = True

[gh-actions]
[gh]
python =
3.9: py39-extra
3.10: py310-extra
Expand Down

0 comments on commit ec79fe0

Please sign in to comment.