diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 422e5df..61a0c80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,12 +18,12 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@v4 - name: Update version number if: startsWith(github.ref, 'refs/tags/') run: sed -i -e "s/0.0.0/${GITHUB_REF##*/}/" pyproject.toml - name: Set up Python - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: install python style and linting tools @@ -47,13 +47,13 @@ jobs: run: | python -m poetry config virtualenvs.in-project true - name: Upload logs on failure - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 + uses: actions/upload-artifact@v3 if: failure() with: name: logs path: "*.log" - name: Cache the virtualenv - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 + uses: actions/cache@v3 with: path: ./.venv key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} @@ -82,13 +82,13 @@ jobs: - name: Build run: poetry build - name: Upload dist artifact - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 + uses: actions/upload-artifact@v3 with: - name: dist + name: dist-${{ matrix.python-version }} path: dist if-no-files-found: error - name: Upload coverage HTML artifact - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 + uses: actions/upload-artifact@v3 with: name: coverage path: htmlcov @@ -101,11 +101,11 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - name: Check out code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3 + uses: actions/download-artifact@v3 with: - name: dist + name: dist-${{ matrix.python-version }} path: dist - name: Install twine run: pip install -U twine