From d8fb60ba7fe56998868a06a69bbcf19715ff5a62 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 12 May 2023 17:52:21 -0300 Subject: [PATCH 1/2] Fix tag creation in deploy workflow As commented in #905, an annotated tag needs a configured user. --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6111ae1d..86d55d57 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} From 6d39025be3451224e040d39a9643ffdade7256e2 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 12 May 2023 17:59:46 -0300 Subject: [PATCH 2/2] Use same package in all test runs --- .github/workflows/test.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4044017..7288c6f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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`