-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.08 KB
/
Pytest.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
on:
push:
branches:
- main
- master
- "bacpop-*"
pull_request:
branches:
- main
- master
- "bacpop-*"
name: Tests
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.10.8
- name: Install dependencies
# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python#installing-dependencies
# If installing a development version of constellation, use:
# - pip3 install git+https://github.com/reside-ic/constellation@reside-62#egg=constellation
run: |
python -m pip install --upgrade setuptools pip wheel
pip3 install pytest-cov pycodestyle codecov
pip3 install -r requirements.txt
- name: Tests
run: |
pytest --cov=src
- name: Lint
run: |
pycodestyle .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1