This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
Create .gitattributes #230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruff & Mypy | |
on: [push, pull_request] | |
jobs: | |
Clean: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Cache Poetry dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pypoetry | |
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-poetry- | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run clean script on AniLinkPy directory | |
run: | | |
poetry run clean --no-fix | |
- name: Run clean script on tests directory | |
run: | | |
poetry run clean tests --no-fix | |
- name: Run clean script on scripts.py file | |
run: | | |
poetry run clean scripts.py --no-fix |