Skip to content

Commit 6d39025

Browse files
committed
Use same package in all test runs
1 parent d8fb60b commit 6d39025

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Diff for: .github/workflows/test.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
jobs:
1919

20-
check-package:
20+
package:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v3
@@ -26,6 +26,8 @@ jobs:
2626

2727
test:
2828

29+
needs: [package]
30+
2931
runs-on: ${{ matrix.os }}
3032

3133
strategy:
@@ -68,14 +70,24 @@ jobs:
6870
with:
6971
# Needed to fetch tags, which are required by setuptools-scm.
7072
fetch-depth: 0
73+
74+
- name: Download Package
75+
uses: actions/download-artifact@v3
76+
with:
77+
name: Packages
78+
path: dist
79+
7180
- name: Set up Python
7281
uses: actions/setup-python@v2
7382
with:
7483
python-version: ${{ matrix.python }}
84+
7585
- name: Install tox
7686
run: |
7787
python -m pip install --upgrade pip
7888
pip install tox
89+
7990
- name: Test
91+
shell: bash
8092
run: |
81-
tox -e ${{ matrix.tox_env }}
93+
tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`

0 commit comments

Comments
 (0)