-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.02 KB
/
test.yaml
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
name: test-workflow
on:
# when any branch in the repository is pushed
push:
# when a pull request is created
pull_request:
# when manually triggered to run
workflow_dispatch:
jobs:
# run tests
test:
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
# do not cancel any jobs when a single job fails
fail-fast: false
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --no-cache-dir --upgrade pip
# generated with poetry export --dev --output requirements-dev.txt
pip install --no-cache-dir --requirement requirements-dev.txt
- name: Run tests
run: pytest