Skip to content

Commit 24b50ee

Browse files
Merge pull request #17 from Geode-solutions/fix/github_actions
Fix/GitHub actions
2 parents 6b0128c + fbc4a97 commit 24b50ee

File tree

5 files changed

+7
-43
lines changed

5 files changed

+7
-43
lines changed

.github/workflows/CICD.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: CICD
22

33
on:
44
push:
5-
branches: [master, next]
65

76
jobs:
87
test:
@@ -13,19 +12,13 @@ jobs:
1312
- name: Test
1413
run: |
1514
pip install pytest pytest-xprocess
16-
pip install -r requirements.txt
17-
pip install .
18-
echo "toto"
19-
ls /usr/local/lib/python3.9/site-packages/opengeodeweb_viewer
20-
echo "tutu"
21-
ls /usr/local/lib/python3.9/site-packages/opengeodeweb_viewer/tests
22-
echo "titi"
23-
ls /usr/local/lib/python3.9/site-packages/opengeodeweb_viewer/tests/data
15+
pip install -e .
2416
pytest
2517
2618
build:
2719
runs-on: ubuntu-latest
2820
needs: test
21+
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
2922
steps:
3023
- name: Checkout
3124
uses: actions/checkout@v4

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
]
2121

22+
[project.optional-dependencies]
23+
gpu = ["vtk == 9.*"]
24+
2225
[project.urls]
2326
"Homepage" = "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer"
2427
"Bug Tracker" = "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer/issues"
@@ -34,8 +37,6 @@ where = ["src"]
3437

3538
[tool.setuptools.package-data]
3639
"opengeodeweb_viewer.rpc.schemas" = ["*.json"]
37-
"tests.images" = ["*.*"]
38-
"tests.data" = ["*.*"]
3940

4041
[tool.semantic_release]
4142
version_toml = [

requirements.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
jsonschema
22
python-dotenv
3-
vtk
43
wslink
54
websocket-client

requirements.txt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,20 @@ attrs==23.2.0
1515
# aiohttp
1616
# jsonschema
1717
# referencing
18-
contourpy==1.2.0
19-
# via matplotlib
20-
cycler==0.12.1
21-
# via matplotlib
22-
fonttools==4.49.0
23-
# via matplotlib
2418
frozenlist==1.4.1
2519
# via
2620
# aiohttp
2721
# aiosignal
2822
idna==3.6
2923
# via yarl
30-
importlib-resources==6.1.3
31-
# via matplotlib
3224
jsonschema==4.21.1
3325
# via -r requirements.in
3426
jsonschema-specifications==2023.12.1
3527
# via jsonschema
36-
kiwisolver==1.4.5
37-
# via matplotlib
38-
matplotlib==3.8.3
39-
# via vtk
4028
multidict==6.0.5
4129
# via
4230
# aiohttp
4331
# yarl
44-
numpy==1.26.4
45-
# via
46-
# contourpy
47-
# matplotlib
48-
packaging==24.0
49-
# via matplotlib
50-
pillow==10.2.0
51-
# via matplotlib
52-
pyparsing==3.1.2
53-
# via matplotlib
54-
python-dateutil==2.9.0.post0
55-
# via matplotlib
5632
python-dotenv==1.0.1
5733
# via -r requirements.in
5834
referencing==0.33.0
@@ -63,15 +39,9 @@ rpds-py==0.18.0
6339
# via
6440
# jsonschema
6541
# referencing
66-
six==1.16.0
67-
# via python-dateutil
68-
vtk==9.3.0
69-
# via -r requirements.in
7042
websocket-client==1.7.0
7143
# via -r requirements.in
7244
wslink==1.12.4
7345
# via -r requirements.in
7446
yarl==1.9.4
7547
# via aiohttp
76-
zipp==3.17.0
77-
# via importlib-resources

src/opengeodeweb_viewer/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def dev_config():
2626

2727
def test_config():
2828
default_config()
29+
print(f"{os.path.dirname(__file__)=}", flush=True)
2930
os.environ["DATA_FOLDER_PATH"] = os.path.join(
30-
os.path.dirname(__file__), "tests", "data"
31+
os.path.dirname(__file__), "..", "tests", "data"
3132
)

0 commit comments

Comments
 (0)