Skip to content

Commit 7e14bad

Browse files
authored
Merge pull request #61 from tisnik/github-action-to-check-dependencies
LCORE-161: GitHub action to check dependencies
2 parents a268d11 + 3f7af15 commit 7e14bad

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check dependencies
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
check_dependencies:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
- name: Check Python version
19+
run: python --version
20+
- name: PDM installation
21+
run: pip install --user pdm
22+
- name: PDM version
23+
run: pdm --version
24+
- name: Generate requirements.txt file
25+
run: pdm export --prod --format requirements --output requirements.txt --no-extras
26+
- name: List requirements.txt file
27+
run: cat requirements.txt

0 commit comments

Comments
 (0)