-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1009 Bytes
/
python-ci.yml
File metadata and controls
40 lines (33 loc) · 1009 Bytes
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
name: Python CI
on: push
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
container: pcic/geospatial-python:3.8.4
env:
HOME: /root
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install system dependencies
run: |
apt-get update
apt-get install -yq libxml2-dev libxslt-dev libffi-dev wget pipx
- name: Install poetry
run: |
pipx install "poetry==2.4.0"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install python dependencies
run: |
poetry install --extras dev
- name: Test with pytest (full)
if: github.ref == 'refs/heads/master'
run: |
poetry run py.test -m "not online" -v
- name: Test with pytest (fast)
if: github.ref != 'refs/heads/master'
run: |
poetry run py.test -m "not online and not slow" -v