-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.12 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
45
46
47
48
49
50
51
name: Pytest
on:
push:
branches:
- 'main'
#- 'releases/**'
pull_request:
branches:
- 'main'
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Install ffmpeg
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: ffmpeg
version: 1.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Run pytest
run: |
pytest --cov=giford --durations 15 -n 10
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v3
if: '!cancelled()'
with:
name: tests
path: /tmp/pytest-of-runner/pytest-0/