Files
resimulate/.gitea/workflows/build.yml
Niklas Bittner 968afff225
Some checks failed
Build Python Package / build (push) Failing after 31s
ci: cache pip packages
2025-02-04 02:05:26 +01:00

40 lines
777 B
YAML

name: Build Python Package
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.1"
cache: "pip"
- name: Run setup script
run: .gitea/scripts/setup-poetry.sh
- name: Check code formatting by black
run: |
poetry run black . --check
- name: Lint code by ruff
run: |
poetry run ruff .
- name: Check types by pyright
run: |
poetry run pyright
- name: Build package
run: poetry build