Skip to content

Commit f5cc8f9

Browse files
committed
Add workflow to build requirements.
1 parent 40a5e95 commit f5cc8f9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/requirements.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: testcontainers requirements
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
8+
jobs:
9+
requirements:
10+
strategy:
11+
matrix:
12+
python-version:
13+
- "3.7"
14+
- "3.8"
15+
- "3.9"
16+
- "3.10"
17+
- "3.11"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Setup python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Update pip and install pip-tools
26+
run: pip install --upgrade pip pip-tools
27+
- name: Build requirements
28+
run: |
29+
rm requirements/${{ matrix.python-version }}.txt
30+
pip-compile --resolver=backtracking -v --upgrade -o requirements/${{ matrix.python-version }}.txt

0 commit comments

Comments
 (0)