mirror of
https://github.com/kc1awv/rrcd.git
synced 2026-05-05 00:39:07 -07:00
39 lines
686 B
YAML
39 lines
686 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.11", "3.12"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -e ".[dev]"
|
|
|
|
- name: Lint (ruff)
|
|
run: |
|
|
ruff check .
|
|
|
|
- name: Compile
|
|
run: |
|
|
python -m compileall rrcd
|
|
|
|
- name: Tests (pytest)
|
|
run: |
|
|
pytest -q
|