From 68300598d5f688da4c921975c8efdb57773eb615 Mon Sep 17 00:00:00 2001 From: Webb Scales Date: Thu, 11 Apr 2024 15:53:08 -0400 Subject: [PATCH] Fix publish workflow --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5daf077..eefdc12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,10 @@ jobs: name: Build strategy: matrix: - python-version: [ '3.9', '3.10', 'pypy3.9' ] + python-version: + - ${{ vars.ARCALOT_PYTHON_VERSION }} + - '3.10' + - 'pypy3.9' runs-on: ubuntu-22.04 steps: - name: Check out code @@ -72,7 +75,7 @@ jobs: python -m poetry run coverage html - name: Publish coverage report to job summary # publishing only once - if: ${{ matrix.python-version == '3.9'}} + if: ${{ matrix.python-version == vars.ARCALOT_PYTHON_VERSION }} run: | poetry run html2text --ignore-images --ignore-links -b 0 htmlcov/index.html >> $GITHUB_STEP_SUMMARY - name: Generate documentation @@ -88,6 +91,7 @@ jobs: path: dist if-no-files-found: error - name: Upload coverage HTML artifact + if: ${{ matrix.python-version == vars.ARCALOT_PYTHON_VERSION }} uses: actions/upload-artifact@v4 with: name: coverage-${{ matrix.python-version }} @@ -105,7 +109,7 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - name: dist-${{ matrix.python-version }} + name: dist-${{ vars.ARCALOT_PYTHON_VERSION }} path: dist - name: Install twine run: pip install -U twine