Use same package in all test runs

This commit is contained in:
Bruno Oliveira
2023-05-12 17:59:46 -03:00
parent d8fb60ba7f
commit 6d39025be3

View File

@@ -17,7 +17,7 @@ concurrency:
jobs:
check-package:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -26,6 +26,8 @@ jobs:
test:
needs: [package]
runs-on: ${{ matrix.os }}
strategy:
@@ -68,14 +70,24 @@ jobs:
with:
# Needed to fetch tags, which are required by setuptools-scm.
fetch-depth: 0
- name: Download Package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test
shell: bash
run: |
tox -e ${{ matrix.tox_env }}
tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`