Repository navigation
62 lines (53 loc) · 1.7 KB
/
Copy pathqgis-compat.yml
File metadata and controls
62 lines (53 loc) · 1.7 KB
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
61
62
name: "🔌 QGIS plugin compat"
on:
push:
branches:
- master
paths:
- '**.py'
- .github/workflows/qgis-compat.yml
pull_request:
branches:
- master
paths:
- '**.py'
- .github/workflows/qgis-compat.yml
workflow_dispatch:
permissions:
contents: read
jobs:
qgis-plugin-compat:
runs-on: ubuntu-latest
steps:
- name: Checkout LoopStructural
uses: actions/checkout@v4
with:
path: LoopStructural
- name: Checkout LoopStructural QGIS plugin
uses: actions/checkout@v4
with:
repository: Loop3D/plugin_loopstructural
path: plugin_loopstructural
- name: Set up uv and Python
uses: astral-sh/setup-uv@v5
with:
python-version: "3.9"
enable-cache: true
- name: Install plugin's non-QGIS test requirements
run: |
uv pip install -r plugin_loopstructural/requirements/testing.txt
uv pip install pydantic eval-type-backport
- name: Install this branch's LoopStructural over the pinned version
run: |
uv pip install --no-deps -e ./LoopStructural/packages/loop_common
uv pip install --no-deps -e ./LoopStructural/packages/loop_interpolation
uv pip install --no-deps -e ./LoopStructural
uv pip install pytest
- name: Import/symbol smoke check on paths the plugin relies on
working-directory: LoopStructural
run: |
uv run pytest tests/unit/test_stable_api_surface.py -v
- name: Run plugin unit tests (non-QGIS) against this branch
working-directory: plugin_loopstructural
run: |
uv run pytest -p no:qgis tests/unit/