Skip to content

chore: pin GitHub Actions to commit SHAs #27

chore: pin GitHub Actions to commit SHAs

chore: pin GitHub Actions to commit SHAs #27

Workflow file for this run

name: Target topology tool QA
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
quality-assurance:
name: Run quality assurance checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Restore Poetry cache
id: poetry-cache
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/pypoetry
key: poetry-cache
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: 3.12
- name: Run image
uses: abatilo/actions-poetry@fd0e6716a0de25ef6ade151b8b53190b0376acfd # v3
with:
poetry-version: 2.1.2
- name: Install poetry deps
shell: bash
run: |
poetry install --no-interaction --no-root
- uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
- name: Run the tests
shell: bash
run: |
make test
- name: Save Poetry cache (only on main)
if: github.ref == 'refs/heads/main'
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/pypoetry
key: poetry-cache