-
-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (40 loc) · 1.14 KB
/
test.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
name: 🧪 Run tests
concurrency: testing_environment
on:
pull_request:
branches:
- master
push:
branches:
- master
workflow_dispatch:
workflow_call:
jobs:
tests:
runs-on: ubuntu-latest
steps:
# Not using strategy.matrix to create multiple jobs
# as we do NOT want to test with any form of concurrency
# to avoid 'race conditions' against Transifex
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: "pip"
cache-dependency-path: "requirements/*.txt"
- name: install
run: |
python -m pip install -U -r requirements/development.txt
python -m pip install -e .
- name: Simple cli test
run: qgis-plugin-ci --help
- name: Install system requirements
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev qttools5-dev-tools
- name: Tests
env:
tx_api_token: ${{ secrets.TRANSIFEX_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
run: nose2 -v