-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (29 loc) · 946 Bytes
/
tests.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
name: unit_tests
# do the following jobs on push and on pull requests
on: [push, pull_request]
# define the jobs
jobs:
unit-tests:
name: ${{ matrix.config.os }} (${{ matrix.config.py }})
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: windows-latest, py: '3.7'}
- {os: macOS-latest, py: '3.7'}
- {os: ubuntu-latest, py: '3.7'}
- {os: ubuntu-latest, py: '3.8'}
- {os: ubuntu-latest, py: '3.9'}
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.config.py }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: run pytest for ${{ matrix.python-version }}
run: pytest