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

45 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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
2024-04-13 05:51:40 +00:00
- 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
2024-04-13 05:51:40 +00:00
run: task format
- name: Import sort
2024-04-13 05:51:40 +00:00
run: task isort
- name: Linting
2024-04-13 05:51:40 +00:00
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
2024-04-13 05:51:40 +00:00
- 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
2024-04-13 05:51:40 +00:00
run: task test