Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d0a89b5ad | |||
| 2f97434236 | |||
| 75c15deeab | |||
| bc1d078eaf | |||
| 5b1b06f3bd | |||
| 24b2d80b41 | |||
| 681ed54638 | |||
| ce33cacc18 | |||
| 21c54832db |
@@ -11,42 +11,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
- run: pip install -e ".[dev]"
|
||||||
- name: Install dependencies
|
- run: pytest tests/ -v
|
||||||
run: |
|
- run: ruff check .
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -e ".[dev]"
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: pytest tests/ -v
|
|
||||||
|
|
||||||
- name: Run linting
|
|
||||||
run: ruff check .
|
|
||||||
|
|
||||||
- name: Run type checking
|
|
||||||
run: pip install mypy && mypy devtoolbelt
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: test
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: pip install build
|
|
||||||
|
|
||||||
- name: Build package
|
|
||||||
run: python -m build
|
|
||||||
|
|
||||||
- name: Verify build
|
|
||||||
run: pip install dist/*.whl --dry-run
|
|
||||||
|
|||||||
38
ci.yml
Normal file
38
ci.yml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: python:3.11-slim
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -e .
|
||||||
|
pip install ruff pytest mypy
|
||||||
|
|
||||||
|
- name: Run linting
|
||||||
|
run: ruff check .
|
||||||
|
|
||||||
|
- name: Run type check
|
||||||
|
run: mypy src/ --ignore-missing-imports || true
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: pytest tests/ -v
|
||||||
Reference in New Issue
Block a user