Skip to content

Commit 5ac5675

Browse files
authored
Merge pull request #7 from mrecos/codex/readme-ci-refresh
Refresh README and add executable CI documentation
2 parents 833c2b2 + 5347183 commit 5ac5675

12 files changed

Lines changed: 380 additions & 543 deletions

File tree

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
test:
12+
name: Python ${{ matrix.python-version }}
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.9", "3.12"]
18+
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v6
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: pip
28+
cache-dependency-path: pyproject.toml
29+
30+
- name: Install package and development tools
31+
run: |
32+
python -m pip install --upgrade pip
33+
python -m pip install -e ".[dev]"
34+
35+
- name: Run tests
36+
run: python -m pytest tests/ -q
37+
38+
- name: Check formatting
39+
if: matrix.python-version == '3.12'
40+
run: python -m black --check klrfome tests examples benchmarks/run_section6_sensitivity.py
41+
42+
- name: Run Ruff
43+
if: matrix.python-version == '3.12'
44+
run: python -m ruff check klrfome tests examples benchmarks/run_section6_sensitivity.py
45+
46+
- name: Run Mypy
47+
if: matrix.python-version == '3.12'
48+
run: python -m mypy klrfome
49+
50+
- name: Execute README smoke workflow
51+
if: matrix.python-version == '3.12'
52+
run: python examples/readme_quickstart.py

0 commit comments

Comments
 (0)