forked from youtube/cobalt
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.05 KB
/
pytest.yaml
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
name: python-tests
on:
pull_request:
push:
branches:
- main
- feature/*
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.pull_request.number || github.sha }}'
cancel-in-progress: true
permissions: {}
jobs:
python-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.8', '3.11']
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Checkout
uses: kaidokert/[email protected]
with:
fetch-depth: 1
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Pip Packages
run: pip install --require-hashes --no-deps -r ${{ github.workspace }}/docker/pytest/requirements.txt
- name: Run Tests
run: coverage run -m pytest
- name: Coverage Report
run: coverage report -m