Skip to content

Commit

Permalink
ci: check that poetry.lock matches pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 2, 2022
1 parent eeb1176 commit 23a3a9b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:

- run: pip3 install poetry
- run: poetry install
- run: poetry run pytest -ra
- run: poetry run pytest
dry-run-release:
runs-on: ubuntu-latest
steps:
Expand All @@ -121,6 +121,16 @@ jobs:

- name: run semantic-release
run: ./ci/release/dry_run.sh
check-poetry-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip3 install poetry
- run: poetry lock --no-update
env:
PYTHONHASHSEED: "0"
- run: git diff --exit-code poetry.lock
release:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
Expand All @@ -129,6 +139,7 @@ jobs:
- poetry
- pre-commit
- dry-run-release
- check-poetry-lock
steps:
- uses: tibdex/github-app-token@v1
id: generate_token
Expand Down

0 comments on commit 23a3a9b

Please sign in to comment.