-
-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 913 Bytes
/
testing.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
name: Testing libcobblersignatures
on:
push:
branches:
- main
pull_request:
paths:
- '**.py'
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run the tests
run: |
pytest --cache-clear --cov=libcobblersignatures tests/ && coverage xml
# https://github.com/codacy/codacy-coverage-reporter-action
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml