-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 1.26 KB
/
installation-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Installation test
on:
push:
paths:
- 'requirements.txt'
- 'pytest.ini'
- '.github/workflows/installation-test.yml'
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: e2e-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
python-install:
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
python-ver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
exclude:
- os: ubuntu-22.04
python-ver: 3.6
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-ver}}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-ver}}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Installation steps on ${{ matrix.os }} w ${{ matrix.python-ver}}
run: |
pip install --upgrade pip
pip install --upgrade cython
pip install -U -r requirements.txt
- name: Run collect only
run: pytest --collect-only