diff --git a/.github/actions/install_requirements/action.yml b/.github/actions/install_requirements/action.yml index b0d68027..0edab8ad 100644 --- a/.github/actions/install_requirements/action.yml +++ b/.github/actions/install_requirements/action.yml @@ -10,6 +10,9 @@ inputs: python_version: description: Python version to install default: "3.x" + artifact_name: + description: A user friendly name to give the produced artifacts + default: "tests" runs: using: composite @@ -38,7 +41,7 @@ runs: - name: Upload lockfiles uses: actions/upload-artifact@v4 with: - name: lockfiles-${{ inputs.python_version }}-${{ github.sha }} + name: lockfiles-${{ inputs.python_version }}-${{ inputs.artifact_name }}-${{ github.sha }} path: lockfiles # This eliminates the class of problems where the requirements being given no diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 2fad6f79..43e2fad3 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -22,6 +22,7 @@ jobs: with: requirements_file: requirements-dev-3.x.txt install_options: -e .[dev] + artifact_name: lint - name: Lint run: tox -e pre-commit,mypy @@ -102,6 +103,7 @@ jobs: python_version: ${{env.CONTAINER_PYTHON}} requirements_file: requirements.txt install_options: dist/*.whl + artifact_name: dist - name: Test module --version works using the installed wheel # If more than one module in src/ replace with module name to test diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d89a0862..3c29ff94 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,6 +29,7 @@ jobs: with: requirements_file: requirements-dev-3.x.txt install_options: -e .[dev] + artifact_name: docs - name: Build docs run: tox -e docs diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index d2a80410..7f651a27 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -19,6 +19,7 @@ jobs: with: requirements_file: requirements-dev-3.x.txt install_options: -e .[dev] + artifact_name: link_check - name: Check links run: tox -e docs build -- -b linkcheck