-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.48 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
40
41
42
43
name: Installation test
on:
push:
paths:
- 'requirements.txt'
- 'pytest.ini'
- '.github/workflows/installation-test.yml'
workflow_dispatch:
# 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
with:
# Use the branch specified by the workflow_dispatch input or the pull_request event
ref: ${{ github.event.inputs.branch || github.event.pull_request.head.ref }}
- 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