Skip to content

Commit

Permalink
Merge pull request #906 from nicoddemus/ci-improvements
Browse files Browse the repository at this point in the history
CI improvements
  • Loading branch information
nicoddemus committed May 15, 2023
2 parents 4d230b6 + 6d39025 commit 9efc64e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Expand Up @@ -43,5 +43,7 @@ jobs:

- name: Push tag
run: |
git config user.name "pytest bot"
git config user.email "pytestbot@gmail.com"
git tag --annotate --message=v${{ github.event.inputs.version }} v${{ github.event.inputs.version }} ${{ github.sha }}
git push origin v${{ github.event.inputs.version }}
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:

check-package:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +26,8 @@ jobs:

test:

needs: [package]

runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -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`

0 comments on commit 9efc64e

Please sign in to comment.