Skip to content

Commit d958bc2

Browse files
authored
Merge pull request #49 from DahanDv/support-py-versions
fix the CI
2 parents 25dc6fd + 8fac087 commit d958bc2

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/unit.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ['3.6.15', '3.9.18', '3.12.0']
10+
python-version: ['3.7', '3.8', '3.9.18', '3.10', '3.11', '3.12.0']
1111
steps:
1212
- name: Clone repository
1313
uses: actions/checkout@v3
@@ -19,11 +19,31 @@ jobs:
1919
run: pip install -r requirements/test.txt
2020
- name: Run unit tests
2121
run: python -m tests -v
22+
23+
# due to error: "The version '3.6' with architecture 'x64' was not found for Ubuntu 22.04."
24+
# test for python 3.6 is run on ubuntu 20.04
25+
unit-3_6: # can't use 3.6 as job name
26+
runs-on: ubuntu-20.04
27+
strategy:
28+
matrix:
29+
python-version: ['3.6']
30+
steps:
31+
- name: Clone repository
32+
uses: actions/checkout@v3
33+
- name: Set up Python ${{ matrix.python-version }}
34+
uses: actions/setup-python@v4
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
- name: Install dependencies
38+
run: pip install -r requirements/test.txt
39+
- name: Run unit tests
40+
run: python -m tests -v
41+
2242
style:
2343
runs-on: ubuntu-latest
2444
strategy:
2545
matrix:
26-
python-version: ['3.6.15']
46+
python-version: ['3.7']
2747
steps:
2848
- name: Clone repository
2949
uses: actions/checkout@v3

requirements/test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ requests==2.26.0
66
urllib3==1.26.6
77
coverage==5.5
88
hypothesis==6.14.3
9-
flake8==3.9.2
9+
flake8==5.0.4

0 commit comments

Comments
 (0)