-
-
Notifications
You must be signed in to change notification settings - Fork 117
40 lines (33 loc) · 891 Bytes
/
ci.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
name: QGIS Plugin CI
on:
push:
branches:
- '**'
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QGIS environment
run: |
sudo apt update
sudo apt install -y qgis python3-qgis python3-pyqt5 python3-pytest
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: pre-commit
run: |
pre-commit run --all-files
- name: Run tests with coverage
run: |
python -m pytest --cov=. --cov-report=xml --cov-report=term-missing test/
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage.xml