-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 1017 Bytes
/
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
name: CI
on: [push]
jobs:
python-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Set up Python
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
with:
python-version: "3.9"
- id: cache
uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install test dependencies
run: pip install codecov && pip install -r requirements.txt -r test_requirements.txt
- name: Tests
run: tox
- name: Collect coverage info
run: coverage xml
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # v1
with:
file: ./coverage.xml