Skip to content

Commit df8e794

Browse files
committed
0 parents  commit df8e794

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4918
-0
lines changed

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
3+
# F401 'module' imported but unused
4+
# E501 line too long (83 > 79 characters)
5+
6+
exclude = .git,.pycache,build,.eggs

.github/workflows/linting.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Linting and code quality check
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- develop
9+
pull_request:
10+
11+
jobs:
12+
lint:
13+
uses: mundialis/github-workflows/.github/workflows/linting.yml@main
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Post PR code suggestions
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Linting and code quality check"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
post-pr-reviews:
11+
uses: mundialis/github-workflows/.github/workflows/post-pr-reviews.yml@main
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Upload Python Package
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
10+
publish-python-test-pypi:
11+
uses: mundialis/github-workflows/.github/workflows/python-publish.yml@main
12+
with:
13+
test_pypi: true
14+
secrets:
15+
PYPI_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
16+
17+
# uncomment for new plugins (not needed for example plugin)
18+
# publish-python-pypi:
19+
# uses: mundialis/github-workflows/.github/workflows/python-publish.yml@main
20+
# secrets:
21+
# PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
3+
name: actinia tests
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
# The branches below must be a subset of the branches above
10+
branches: [ main ]
11+
12+
jobs:
13+
14+
unittests-G84:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
- name: Replace run only unittest command
22+
run: |
23+
sed -i "s+# RUN make test+RUN make unittest+g" docker/actinia-cloudevent-plugin-test/Dockerfile
24+
- name: Unittests of actinia-cloudevent-plugin
25+
id: docker_build
26+
uses: docker/build-push-action@v6
27+
with:
28+
push: false
29+
tags: actinia-cloudevent-plugin-tests:alpine
30+
context: .
31+
file: docker/actinia-cloudevent-plugin-test/Dockerfile
32+
no-cache: true
33+
# pull: true
34+
35+
integration-tests-G84:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
# with:
41+
# path: "."
42+
- name: Set up Docker Buildx
43+
uses: docker/setup-buildx-action@v3
44+
- name: Replace run integration test command
45+
run: |
46+
sed -i "s+# RUN make test+RUN make integrationtest+g" docker/actinia-cloudevent-plugin-test/Dockerfile
47+
- name: Integration tests of actinia-cloudevent-plugin
48+
id: docker_build
49+
uses: docker/build-push-action@v6
50+
with:
51+
push: false
52+
tags: actinia-cloudevent-plugin-test:alpine
53+
context: .
54+
file: docker/actinia-cloudevent-plugin-test/Dockerfile
55+
no-cache: true
56+
# pull: true
57+
58+
unittests-G83:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
- name: Set up Docker Buildx
64+
uses: docker/setup-buildx-action@v3
65+
- name: Replace actinia version (including GRASS version)
66+
run: |
67+
sed -i "s+mundialis/actinia:latest+mundialis/actinia:grass8.3+g" docker/actinia-cloudevent-plugin-test/Dockerfile
68+
- name: Replace run only unittest command
69+
run: |
70+
sed -i "s+# RUN make test+RUN make unittest+g" docker/actinia-cloudevent-plugin-test/Dockerfile
71+
- name: Unittests of actinia-cloudevent-plugin
72+
id: docker_build
73+
uses: docker/build-push-action@v6
74+
with:
75+
push: false
76+
tags: actinia-cloudevent-plugin-tests:alpine
77+
context: .
78+
file: docker/actinia-cloudevent-plugin-test/Dockerfile
79+
no-cache: true
80+
# pull: true
81+
82+
integration-tests-G83:
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Checkout
86+
uses: actions/checkout@v4
87+
# with:
88+
# path: "."
89+
- name: Set up Docker Buildx
90+
uses: docker/setup-buildx-action@v3
91+
- name: Replace actinia version (including GRASS version)
92+
run: |
93+
sed -i "s+mundialis/actinia:latest+mundialis/actinia:grass8.3+g" docker/actinia-cloudevent-plugin-test/Dockerfile
94+
- name: Replace run integration test command
95+
run: |
96+
sed -i "s+# RUN make test+RUN make integrationtest+g" docker/actinia-cloudevent-plugin-test/Dockerfile
97+
- name: Integration tests of actinia-cloudevent-plugin
98+
id: docker_build
99+
uses: docker/build-push-action@v6
100+
with:
101+
push: false
102+
tags: actinia-cloudevent-plugin-test:alpine
103+
context: .
104+
file: docker/actinia-cloudevent-plugin-test/Dockerfile
105+
no-cache: true
106+
# pull: true

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Temporary and binary files
2+
*~
3+
*.py[cod]
4+
*.so
5+
*.cfg
6+
!setup.cfg
7+
!docker/actinia.cfg
8+
!docker/actinia-cloudevent-plugin-test/actinia-cloudevent-plugin-test.cfg
9+
*.orig
10+
*.log
11+
*.pot
12+
__pycache__/*
13+
.cache/*
14+
.*.swp
15+
*/.ipynb_checkpoints/*
16+
17+
# Project files
18+
.ropeproject
19+
.project
20+
.pydevproject
21+
.settings
22+
.idea
23+
24+
# Package files
25+
*.egg
26+
*.eggs/
27+
.installed.cfg
28+
*.egg-info
29+
30+
# Unittest and coverage
31+
htmlcov/*
32+
.coverage
33+
.tox
34+
junit.xml
35+
coverage.xml
36+
37+
# Build and docs folder/files
38+
build/*
39+
dist/*
40+
sdist/*
41+
42+
# docker
43+
docker/valkey_data/dump.rdb
44+
!docker/actinia-cloudevent-plugin-test/actinia-cloudevent-plugin-test.cfg
45+
46+
# linting with shared config file
47+
.pylintrc
48+
.pylintrc_allowed_to_fail
49+
ruff-github-workflows.toml
50+
ruff-merged.toml

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: trailing-whitespace
7+
exclude: |
8+
(?x)^(
9+
.*\.ref$|
10+
.*\.svg$|
11+
build/|
12+
dist/|
13+
src/actinia_core.egg-info/
14+
)
15+
- id: end-of-file-fixer
16+
exclude: |
17+
(?x)^(
18+
.*\.ref$|
19+
.*\.svg$|
20+
build/|
21+
dist/|
22+
src/actinia_core.egg-info/
23+
)
24+
- repo: https://github.com/mundialis/github-workflows
25+
rev: 1.4.1
26+
hooks:
27+
- id: linting

0 commit comments

Comments
 (0)