This repository has been archived on 2024-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
spud-py/.forgejo/workflows/main.yml
Marc Cataford 8a93ef0c80
All checks were successful
/ Tests (push) Successful in 58s
/ Static Analysis (push) Successful in 1m9s
ci: use taskfile in CI
2024-04-13 01:51:40 -04:00

44 lines
1.1 KiB
YAML

on: [push]
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/actions/setup-python@v5
with:
python-version: 3.12
- uses: https://github.com/arduino/setup-task@v1
with:
version: 3.36
- run: |
pip install -r ./requirements.txt
pip install -r ./requirements_dev.txt
pip install .
- name: Formatting
run: task format
- name: Import sort
run: task isort
- name: Linting
run: task lint
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://forge.karnov.club
- uses: https://github.com/actions/setup-python@v5
with:
python-version: 3.12
- uses: https://github.com/arduino/setup-task@v1
with:
version: 3.36
- run: |
pip install -r ./requirements.txt
pip install -r ./requirements_test.txt
pip install .
- name: Test suites
run: task test