Migrate admin panel to django #1437
Workflow file for this run
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: Pre-commit | |
on: | |
push: | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
name: pre-commit | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.13 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pypoetry | |
key: poetry-${{ hashFiles('poetry.lock') }} | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | |
- name: Check poetry dependenciess | |
run: poetry check | |
- name: Install dependencies | |
run: poetry install --extras dev --no-interaction | |
- name: Run black | |
run: poetry run black --check --diff $(git ls-files "*.py") | |
- name: Run pre-commit checks | |
run: poetry run pre-commit run -a |