ubuntu-latest never matched the self-hosted runner; Gitea also rejects GITEA_-prefixed secret names. Wire publish workflow to PACKAGE_USER/TOKEN.
35 lines
828 B
YAML
35 lines
828 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: haskelseed
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.12"]
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install package and dev tools
|
|
run: python -m pip install --upgrade pip && python -m pip install -e ".[dev]"
|
|
|
|
- name: Format check (black)
|
|
run: black --check src tests
|
|
|
|
- name: Lint (flake8)
|
|
run: pip install flake8 && flake8 src/ --max-line-length=100
|
|
|
|
- name: Run tests
|
|
run: pytest tests/ -q --ignore=tests/test_cli_error_handling.py
|