generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (46 loc) · 1.21 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
52
53
54
55
name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
name: With pytest for Python ${{ matrix.python_version }}
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [ "3.10", "3.11" ]
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🎵 Install poetry
run: pipx install poetry
- name: 🛠️ Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python_version }}"
cache: 'poetry'
- name: 📦 Install requirements
run: task install
- name: 🏃 Run tests
env:
PYTEST: true
run: task tests
- name: 📤 Upload coverage to Codecov
if: ${{ matrix.python_version == '3.11' }}
run: |
task coverage
curl -sfSL https://codecov.io/bash | bash -