Skip to content

Commit 1d7688d

Browse files
committed
Test and build
1 parent 2e01a44 commit 1d7688d

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/build_and_push.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,76 @@ permissions:
1111
packages: write
1212

1313
jobs:
14+
run_tests_ubuntu:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: ["ubuntu-latest"]
21+
python-version: ["3.11"]
22+
23+
timeout-minutes: 20
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v4
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -r requirements.txt
38+
pip install sh
39+
40+
- name: List dependencies
41+
run: |
42+
python -m pip list
43+
44+
- name: Run pytest
45+
run: |
46+
pytest -v
47+
48+
run_tests_windows:
49+
runs-on: ${{ matrix.os }}
50+
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
os: ["windows-latest"]
55+
python-version: ["3.11"]
56+
57+
timeout-minutes: 20
58+
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v4
62+
63+
- name: Set up Python ${{ matrix.python-version }}
64+
uses: actions/setup-python@v4
65+
with:
66+
python-version: ${{ matrix.python-version }}
67+
68+
- name: Install dependencies
69+
run: |
70+
python -m pip install --upgrade pip
71+
pip install -r requirements.txt
72+
73+
- name: List dependencies
74+
run: |
75+
python -m pip list
76+
77+
- name: Run pytest
78+
run: |
79+
pytest -v
80+
1481
build:
1582
runs-on: ubuntu-latest
83+
needs: [run_tests_ubuntu, run_tests_windows]
1684

1785
steps:
1886
- name: Checkout

0 commit comments

Comments
 (0)