38 lines
622 B
YAML
38 lines
622 B
YAML
name: Python CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**.py'
|
|
- 'requirements.txt'
|
|
- 'pyproject.toml'
|
|
- 'setup.py'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**.py'
|
|
- 'requirements.txt'
|
|
- 'pyproject.toml'
|
|
- 'setup.py'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
container:
|
|
image: disagreement-image:latest
|
|
options: --user runneruser
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run Pyright
|
|
run: pyright
|
|
|
|
- name: Run Tests
|
|
run: pytest tests/
|