-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.14 KB
/
run_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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Run tests
on:
push:
branches:
- main
pull_request:
jobs:
run-tests:
name: Run tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest , opt_req: true }
- { os: windows-latest, opt_req: false }
- { os: macos-latest , opt_req: true }
steps:
- name: Cancel non-latest runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt -r requirements.txt
- name: Install package
run: |
python -m pip install . # must install in editable mode for coverage to find sources
python -m pip list
- name: Run tests
run: |
pytest