-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 919 Bytes
/
test.yml
File metadata and controls
38 lines (32 loc) · 919 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
name: Test
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
# Lightweight checks that run on every PR (no GPU needed)
lint:
name: Lint & Import Check
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install ruff
- name: Run ruff linter
run: |
ruff check rtxpy/ --output-format=github || true
- name: Check package structure
run: |
python -c "import ast; ast.parse(open('rtxpy/__init__.py').read())"
python -c "import ast; ast.parse(open('rtxpy/rtx.py').read())"
echo "Package syntax OK"