Skip to content

Commit 2a2c314

Browse files
committed
use setup-python action
1 parent 853d40b commit 2a2c314

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci-arm.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on: [push, pull_request]
88
jobs:
99
build:
1010
runs-on: [self-hosted, linux, ARM64]
11+
strategy:
12+
matrix:
13+
python: ['3.10', '3.9', '3.8']
1114

1215
steps:
1316
- uses: actions/checkout@v2
@@ -19,24 +22,22 @@ jobs:
1922
3.1.x
2023
6.0.x
2124
22-
- name: Create virtualenv
23-
run: |
24-
virtualenv -p python3 venv
25+
- name: Set up Python ${{ matrix.python }}
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python }}
2529

2630
- name: Install dependencies
2731
run: |
28-
source venv/bin/activate
2932
python -m pip install --upgrade pip
3033
pip install pytest cffi
3134
3235
# Assumes recent Mono
3336

3437
- name: Build
3538
run: |
36-
source venv/bin/activate
3739
pip install -e .
3840
3941
- name: Test with pytest
4042
run: |
41-
source venv/bin/activate
4243
pytest

0 commit comments

Comments
 (0)