mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:05:53 +08:00
Use common workflow
This commit is contained in:
parent
7ddd65987f
commit
edbfb9a9ca
24
.github/workflows/unit-test.yml
vendored
24
.github/workflows/unit-test.yml
vendored
@ -37,26 +37,10 @@ on:
|
|||||||
- main
|
- main
|
||||||
- '[0-9]+.[0-9]+'
|
- '[0-9]+.[0-9]+'
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
env:
|
|
||||||
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_USER }}
|
|
||||||
CONAN_PASSWORD: ${{ secrets.CONAN_PASS }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
conan-recipe-version:
|
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
|
|
||||||
with:
|
|
||||||
project_name: cura
|
|
||||||
|
|
||||||
testing:
|
testing:
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/unit-test.yml@main
|
name: Run unit tests
|
||||||
needs: [ conan-recipe-version ]
|
# FIXME: use main once merged
|
||||||
|
uses: ultimaker/cura-workflows/.github/workflows/unit-test.yml@CURA-11622_conan_v2
|
||||||
with:
|
with:
|
||||||
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
|
test_use_pytest: true
|
||||||
conan_extra_args: '-g VirtualPythonEnv -o cura:devtools=True -c tools.build:skip_test=False --options "*:enable_sentry=False"'
|
|
||||||
unit_test_cmd: 'pytest --junitxml=junit_cura.xml'
|
|
||||||
unit_test_dir: 'tests'
|
|
||||||
conan_generator_dir: './venv/bin'
|
|
||||||
secrets: inherit
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user