From ec79fe0381d6d89afd0d4d4075282ecb26349f19 Mon Sep 17 00:00:00 2001 From: Sergey Astanin Date: Thu, 26 Sep 2024 16:32:00 +0200 Subject: [PATCH] configure GitHub Action using tox-gh instead of tox-gh-actions --- .github/workflows/github-actions-tox.yml | 22 ++++++++++++---------- tox.ini | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-actions-tox.yml b/.github/workflows/github-actions-tox.yml index 178b212..0b89058 100644 --- a/.github/workflows/github-actions-tox.yml +++ b/.github/workflows/github-actions-tox.yml @@ -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 diff --git a/tox.ini b/tox.ini index b37e0aa..a7fe513 100644 --- a/tox.ini +++ b/tox.ini @@ -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