forked from mpeterv/hererocks
-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (43 loc) · 964 Bytes
/
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
44
45
name: Run tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
- '2.7'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
os:
- ubuntu-latest
- macos-latest-large
- windows-latest
steps:
- uses: actions/checkout@v3
- uses: MatteoH2O1999/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
allow-build: info
cache-build: true
- name: Install test runner
run: |
pip install --upgrade pip wheel setuptools
pip install pytest-cov
- name: Run tests
run: |
pytest --cov -- test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3