Skip to content

Commit

Permalink
Merge pull request #33 from PeterJCLaw/poetry-validation
Browse files Browse the repository at this point in the history
Introduce a CI step to validate dependency locks
  • Loading branch information
danpalmer committed Jan 5, 2024
2 parents 625c802 + cf0f98e commit 1d7afd1
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Set up Poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.3.2
poetry-version: 1.7.1

- name: Set up dependencies
run: poetry install
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Set up Poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.3.2
poetry-version: 1.7.1

- name: Install dependencies
run: |
Expand All @@ -102,3 +102,26 @@ jobs:
- name: Lint
run: |
poetry run flake8 . --jobs=auto --format=github
validate-dependencies:
name: Check dependency locks
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Set up Poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.7.1

- uses: PeterJCLaw/validate-generated-files@v1
with:
command: poetry lock --no-update
files: poetry.lock

0 comments on commit 1d7afd1

Please sign in to comment.