Skip to content

Commit 9efc64e

Browse files
authored
Merge pull request #906 from nicoddemus/ci-improvements
CI improvements
2 parents 4d230b6 + 6d39025 commit 9efc64e

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ jobs:
4343

4444
- name: Push tag
4545
run: |
46+
git config user.name "pytest bot"
47+
git config user.email "pytestbot@gmail.com"
4648
git tag --annotate --message=v${{ github.event.inputs.version }} v${{ github.event.inputs.version }} ${{ github.sha }}
4749
git push origin v${{ github.event.inputs.version }}

.github/workflows/test.yml

Lines changed: 14 additions & 2 deletions
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)