Skip to content

Commit 6231167

Browse files
committed
fix python27 tests
1 parent 766178d commit 6231167

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

.github/workflows/workflow.yml

+29-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939
name: wheel
4040
path: dist/*.whl
4141

42-
test:
42+
test-wheels:
4343
runs-on: ${{ matrix.os }}
4444
needs: build
4545

4646
strategy:
4747
fail-fast: false
4848
matrix:
4949
os: [ubuntu-20.04, windows-latest, macos-latest]
50-
python-version: ["2.7", "3.7", "3.8", "3.9", "3.10"]
50+
python-version: ["3.7", "3.8", "3.9", "3.10"]
5151

5252
steps:
5353
- uses: actions/checkout@v3
@@ -72,8 +72,34 @@ jobs:
7272
python -m pip install dist/*
7373
python -m unittest discover tests -v
7474
75+
test-wheels-27:
76+
runs-on: ubuntu-latest
77+
container: coatldev/six:latest
78+
needs: build
79+
80+
steps:
81+
- name: Checkout repo
82+
uses: actions/checkout@v3
83+
84+
- name: Setup FFmpeg
85+
uses: FedericoCarboni/setup-ffmpeg@v1.1.0
86+
87+
- name: Download wheel
88+
uses: actions/download-artifact@v3
89+
with:
90+
name: wheel
91+
path: dist
92+
93+
- name: Run Unit Tests
94+
shell: bash
95+
run: |
96+
python2 -m pip install dist/*
97+
python2 -m unittest discover tests -v
98+
7599
latest-release:
76-
needs: test
100+
needs:
101+
- test-wheels
102+
- test-wheels-27
77103
runs-on: ubuntu-latest
78104
steps:
79105
- name: Download sdist

0 commit comments

Comments
 (0)