Skip to content

Commit cd9bfc3

Browse files
authored
Add poetry checks workflow extracted from make-base-ci
This workflow checks for changes in poetry.lock on pull requests targeting the main branch.
1 parent cb570aa commit cd9bfc3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: poetry checks
2+
3+
on:
4+
pull_request_target:
5+
branches: [ "main" ]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request_target.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions: {}
12+
13+
jobs:
14+
diff-poetry-lock:
15+
# FIXME: Remove when https://github.com/target/make-python-devex/issues/119 is fixed
16+
continue-on-error: true
17+
runs-on: ubuntu-latest
18+
permissions:
19+
pull-requests: write
20+
issues: write
21+
contents: read
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25+
with:
26+
persist-credentials: false
27+
# This will post a comment on PRs when poetry.lock changes
28+
- name: Diff poetry.lock
29+
uses: colindean/diff-poetry-lock@nl
30+

0 commit comments

Comments
 (0)