Skip to content

Commit

Permalink
Merge pull request #28 from OpenRailAssociation/workflow-caching
Browse files Browse the repository at this point in the history
Add caching to workflows
  • Loading branch information
mxmehl authored Sep 20, 2024
2 parents e16695d + 6bf0f52 commit 9fd3953
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 262 deletions.
8 changes: 5 additions & 3 deletions .github/actions/poetrybuild/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ inputs:
runs:
using: "composite"
steps:
- name: Install poetry
run: pipx install poetry
shell: bash
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python }}
cache: "poetry"
- name: Install dependencies
run: |
pip install poetry
poetry install --no-interaction ${{ inputs.poetry_args }}
run: poetry install --no-interaction ${{ inputs.poetry_args }}
shell: bash
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
run: pip install poetry
cache: "poetry"
- name: Build package
run: poetry build
- name: Install package
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install compliance-assistant
run: pip install compliance-assistant
# Download raw SBOM
Expand Down
Loading

0 comments on commit 9fd3953

Please sign in to comment.