cutekit/.github/workflows/checks.yml

41 lines
742 B
YAML
Raw 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
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
2023-11-11 16:02:42 +00:00
with:
python-version: '3.x'
2023-11-11 16:02:42 +00:00
- name: Install dependencies
run: |
2023-11-15 14:45:43 +00:00
sudo apt install -y ruff
2023-11-11 16:02:42 +00:00
python -m pip install --upgrade pip
2023-11-15 09:57:51 +00:00
python -m pip install -r requirements.txt
python -m pip install mypy pytest
2023-11-11 16:02:42 +00:00
- name: Run MyPy
run: |
python -m mypy --install-types --non-interactive .
2023-11-13 18:19:59 +00:00
- name: Run PyTest
run: |
python -m pytest
2023-11-15 14:45:43 +00:00
- name: Run Ruff
run: |
ruff check cutekit