-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.13 KB
/
Copy pathmain.yml
File metadata and controls
45 lines (40 loc) · 1.13 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
42
43
44
45
name: Python CI (Build & Test)
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
lint:
name: Style Suggestions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ruff
run: pip install ruff
- name: Critical Logic Check
# Fails only on broken code (F=Logic errors, E9=Syntax)
run: ruff check . --select=F,E9
- name: Pythonic Advice
# Runs the full linter for your review, but never fails the build
continue-on-error: true
run: ruff check .
build-and-test:
name: Physics Smoke Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Master Simulation
env:
MPLBACKEND: Agg
PYTHONPATH: ${{ github.workspace }}
run: python examples/Chapter9/master_simulation.py