Skip to content

Commit

Permalink
rewrite GitHub Action using explicit reference to tox environment wit…
Browse files Browse the repository at this point in the history
…h -extra suffix
  • Loading branch information
astanin committed Sep 26, 2024
1 parent db5cdd0 commit bdb639e
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/github-actions-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ jobs:
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- 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-actions
- name: Test with tox
run: tox
- 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

0 comments on commit bdb639e

Please sign in to comment.