-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.15 KB
/
python.yml
File metadata and controls
41 lines (38 loc) · 1.15 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
name: Python checks
on:
pull_request:
push:
branches: [master]
jobs:
lint:
name: Lint (ruff)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check . || echo "::warning::ruff found issues — please fix before merging"
continue-on-error: true
python-import:
name: Import smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Verify modules import
run: |
python -c "import server" || true
python -c "import utils"
python -c "from resource.collections import Create, Retrieve"
python -c "from resource.moving_features import Create, Retrieve"
python -c "from resource.temporal_geom_query import distance, velocity, acceleration"