Skip to content

Commit 67b32d0

Browse files
committed
Separete legacy tests to run in legacy container
1 parent ce19dbe commit 67b32d0

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

.github/workflows/main.yml

+33-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ name: Tests
33
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
6-
build:
6+
latest:
7+
name: Latest Python Stable Release
78
runs-on: ubuntu-latest
89

910
strategy:
1011
matrix:
11-
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
12+
python-version: ["3.11"]
1213

1314
steps:
1415
- uses: actions/checkout@v3
@@ -32,7 +33,36 @@ jobs:
3233
cd build/dist/pytz/tests
3334
python test_docs.py -vv
3435
- name: zdump Tests
35-
if: ${{ matrix.python-version == '3.11' }}
3636
run: |
3737
python gen_tests.py
3838
python test_zdump.py -vv
39+
40+
legacy:
41+
name: Older Python Releases
42+
runs-on: ubuntu-20.04
43+
44+
strategy:
45+
matrix:
46+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
47+
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v4
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
- name: Install dependencies
55+
run: |
56+
python -m pip install --upgrade pip wheel flake8
57+
- name: Build
58+
run: |
59+
make build
60+
- name: Unit Tests
61+
run: |
62+
cd build/dist/pytz/tests
63+
python test_lazy.py -vv
64+
python test_tzinfo.py -vv
65+
- name: Documentation Tests
66+
run: |
67+
cd build/dist/pytz/tests
68+
python test_docs.py -vv

0 commit comments

Comments
 (0)