cutekit/.github/workflows/checks.yml

41 lines
722 B
YAML
Raw Permalink Normal View History

2023-11-11 16:02:42 +00:00
name: Checks
on:
pull_request:
push:
branches:
- stable
- dev
jobs:
2023-11-13 18:35:26 +00:00
checks:
2023-11-11 16:02:42 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout repository
2023-11-21 19:23:44 +00:00
uses: actions/checkout@v3
2023-11-11 16:02:42 +00:00
- name: Set up Python
uses: actions/setup-python@v3
2023-11-11 16:02:42 +00:00
with:
2023-11-21 13:49:25 +00:00
python-version: '3.11'
2023-11-11 16:02:42 +00:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2023-11-15 09:57:51 +00:00
python -m pip install -r requirements.txt
2023-11-21 12:30:30 +00:00
python -m pip install mypy pytest ruff
2023-11-11 16:02:42 +00:00
2023-11-21 12:30:30 +00:00
- name: Type Checking
2023-11-11 16:02:42 +00:00
run: |
python -m mypy --install-types --non-interactive .
2023-11-13 18:19:59 +00:00
2023-11-21 12:30:30 +00:00
- name: Linting
2023-11-13 18:19:59 +00:00
run: |
2023-11-21 12:30:30 +00:00
ruff check cutekit
2023-11-15 14:45:43 +00:00
2023-11-21 12:30:30 +00:00
- name: Unit Testing
2023-11-15 14:45:43 +00:00
run: |
2023-11-21 12:30:30 +00:00
python -m pytest