--------- Co-authored-by: Julian Piribauer <julian.piribauer@gmail.com> Co-authored-by: julian <julian.piribauer@gmail.com> Reviewed-on: #10
38 lines
717 B
YAML
38 lines
717 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
# Custom image (see .gitea/ci-image/Dockerfile)
|
|
container:
|
|
image: gitea.piribauer.ch/julian/sage-ci:latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Preparse .sage files
|
|
run: .gitea/preparse.sh
|
|
|
|
- name: ruff check
|
|
run: python -m ruff check --no-respect-gitignore .
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
needs: lint
|
|
container:
|
|
image: gitea.piribauer.ch/julian/sage-ci:latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run tests
|
|
run: python -m pytest tests/
|