Skip to content

Commit aaaabb8

Browse files
anitagraseranitagraser
authored andcommitted
Set up woodpecker CI (#107)
Reviewed-on: https://codeberg.org/movingpandas/trajectools/pulls/107 Co-authored-by: Anita Graser <[email protected]> Co-committed-by: Anita Graser <[email protected]>
1 parent f042634 commit aaaabb8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.woodpecker/tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Based on https://codeberg.org/sail.black/serial-sphinx/src/branch/main/.woodpecker.yml
2+
3+
steps:
4+
flake8:
5+
image: python:3.9-buster
6+
when:
7+
event: pull_request
8+
branch: main
9+
commands:
10+
- python -m pip install --upgrade pip
11+
- python -m pip install flake8
12+
- python -m flake8 . --count --show-source --statistics
13+
14+
pytest:
15+
image: python:${TAG}-buster
16+
when:
17+
event: pull_request
18+
branch: main
19+
commands:
20+
- ls
21+
- wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
22+
- bash Miniforge3.sh -b -p "${HOME}/conda"
23+
- . "${HOME}/conda/etc/profile.d/conda.sh"
24+
- conda activate
25+
- conda install -c conda-forge qgis movingpandas pytest
26+
- pytest .
27+
28+
matrix:
29+
TAG:
30+
- 3.9
31+
- 3.12.0b2

0 commit comments

Comments
 (0)