-
-
Notifications
You must be signed in to change notification settings - Fork 185
60 lines (54 loc) · 1.39 KB
/
unit-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
51
52
53
54
55
56
57
58
59
60
---
name: unit-test
# FIXME: This should be a reusable workflow
on:
push:
paths:
- 'plugins/**'
- 'resources/**'
- 'UM/**'
- 'tests/**'
- '.github/workflows/unit-test.yml'
- 'requirements*.txt'
- 'conanfile.py'
- 'conandata.yml'
- '*.jinja'
branches:
- main
- 'CURA-*'
- 'PP-*'
- '[0-9]+.[0-9]+'
pull_request:
paths:
- 'plugins/**'
- 'resources/**'
- 'UM/**'
- 'icons/**'
- 'tests/**'
- '.github/workflows/unit-test.yml'
- 'requirements*.txt'
- 'conanfile.py'
- 'conandata.yml'
- '*.jinja'
branches:
- main
- '[0-9]+.[0-9]+'
permissions:
contents: read
env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_USER }}
CONAN_PASSWORD: ${{ secrets.CONAN_PASS }}
jobs:
conan-recipe-version:
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
with:
project_name: uranium
testing:
uses: ultimaker/cura-workflows/.github/workflows/unit-test.yml@main
needs: [ conan-recipe-version ]
with:
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
conan_extra_args: '-g VirtualPythonEnv -o uranium:devtools=True -c tools.build:skip_test=False'
unit_test_cmd: 'pytest --junitxml=junit_uranium.xml'
unit_test_dir: 'tests'
conan_generator_dir: './venv/bin'