Files
resimulate/.gitea/workflows/build.yml
Niklas Bittner acfe410a69
Some checks failed
Build Python Package / build (push) Failing after 34s
ci: switch to install poetry action
2025-02-04 02:11:31 +01:00

43 lines
867 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: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
installer-parallel: true
- 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