-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.7 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: dserver-client-container-image-build-and-test
on:
push:
branches:
- main
pull_request:
jobs:
pip-compile:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }} sample
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install pip-tools and pipdeptree
run: |
pip install --upgrade pip
pip install wheel setuptools_scm
pip install pip-tools
pip install pipdeptree
- name: Requirements inspection and upgrade
run: |
cd compose/production/dtool
echo "### Initial pip install -r requirements.txt ###"
pip install -r requirements.txt
echo "### Initial pipdeptree ###"
pipdeptree | tee pipdeptree.initial
echo "### pip-compile --upgrade ###"
pip-compile --upgrade requirements.in
echo "### requirements.txt diff ###"
git diff requirements.txt | tee diff_requirements.txt
echo "### Repeated pip install -r requirements.txt ###"
pip install -r requirements.txt
echo "### Upgraded pipdeptree ###"
pipdeptree | tee pipdeptree.upgraded
build-and-test:
uses: livMatS/dtool-framework-workflows/.github/workflows/dtool-lookup-framework-generic-container-image-build-and-test.yml@main
with:
image: jotelha/dtool
service: dserver_client
docker_file: ./compose/production/dtool/Dockerfile