generated from JacksonBurns/blank-python-project
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (37 loc) · 1.02 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
name: Run Tests
on:
schedule:
- cron: '0 8 * * 1'
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
name: ${{ matrix.os }} Python ${{ matrix.python-version }} Subtest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install -e .[dev]
python -m pip install coverage
- name: Run Tests
run: |
coverage run --source=. --omit=py2opsin/__init__.py,setup.py,test/* -m unittest discover
- name: Show Coverage
run: |
coverage report -m