Skip to content

Commit a1aceac

Browse files
Merge pull request #331 from tillahoffmann/req
Add workflow to build requirements.
2 parents 7636c80 + b96c80e commit a1aceac

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/requirements.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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
31+
- name: Store requirements as artifact
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: requirements-${{ matrix.python-version }}.txt
35+
path: requirements/${{ matrix.python-version }}.txt

0 commit comments

Comments
 (0)