Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Specify different artifact names each time install requirements is run
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Jan 4, 2024
1 parent f059eef commit d207994
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/install_requirements/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d207994

Please sign in to comment.