-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (43 loc) · 1.14 KB
/
ci.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
name: CI
on:
push:
branches: [master]
tags: ["*"]
pull_request:
branches: [master]
jobs:
test:
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version: ["3.7", "3.8", "3.9", "3.10"]
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch: ["x64"]
steps:
- uses: actions/checkout@v2
- name: Setup python ${{ matrix.version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.version }}
architecture: ${{ matrix.arch }}
- name: Install Project and Dependencies
run: |
pip install -U pip
pip install .[test]
- name: Cache Test Data
uses: actions/cache@v1
with:
path: tests/data
key: ${{ runner.os }}-test-data
- name: Test
run: |
pytest --cov=Starfish --cov-report=xml --benchmark-skip --black
- name: Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}