Skip to content

Commit 2f520f5

Browse files
update github workflow
1 parent 7056a5a commit 2f520f5

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,33 @@ jobs:
88
build:
99
strategy:
1010
matrix:
11-
platform: [ubuntu-20.04, windows-latest]
11+
platform: [ubuntu-22.04, windows-latest]
1212
runs-on: ${{ matrix.platform }}
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Set up Python 3.6
15+
- name: Set up Python 3.6 (Windows)
16+
if: matrix.platform == 'windows-latest'
1617
uses: actions/setup-python@v4
1718
with:
18-
python-version: '3.6'
19+
python-version: "3.6"
20+
- name: Set up Python 3.6 (Ubuntu)
21+
if: matrix.platform == 'ubuntu-22.04'
22+
run: |
23+
sudo add-apt-repository ppa:deadsnakes/ppa
24+
sudo apt-get update
25+
sudo apt-get install -y python3.6
1926
- name: Set up Python 3.8
2027
uses: actions/setup-python@v4
2128
with:
22-
python-version: '3.8'
29+
python-version: "3.8"
2330
- name: Set up Python 3.10
2431
uses: actions/setup-python@v4
2532
with:
26-
python-version: '3.10'
33+
python-version: "3.10"
2734
- name: Set up Python 3.12
2835
uses: actions/setup-python@v4
2936
with:
30-
python-version: '3.12'
37+
python-version: "3.12"
3138
- name: Install dependencies
3239
run: |
3340
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)