From bdb639e650d9033a07d17e8eded9a908f08e101d Mon Sep 17 00:00:00 2001 From: Sergey Astanin Date: Thu, 26 Sep 2024 16:21:55 +0200 Subject: [PATCH] rewrite GitHub Action using explicit reference to tox environment with -extra suffix --- .github/workflows/github-actions-tox.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/github-actions-tox.yml b/.github/workflows/github-actions-tox.yml index 98c814a..178b212 100644 --- a/.github/workflows/github-actions-tox.yml +++ b/.github/workflows/github-actions-tox.yml @@ -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