-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (32 loc) · 869 Bytes
/
test.yml
File metadata and controls
42 lines (32 loc) · 869 Bytes
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
name: "Tests"
on:
pull_request:
concurrency:
group: >-
${{ github.workflow }}-
${{ github.ref_type }}-
${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
run:
strategy:
matrix:
python: ['3.8']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run tests and collect coverage
run: pytest --cov featureprobe
- name: Upload coverage to Codecov
if: ${{ matrix.python }} == '3.8'
uses: codecov/codecov-action@v3