Bump black from 21.12b0 to 24.3.0 #1866
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: mote | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
ci-basic: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the base dependencies | |
run: | | |
python3 -m pip install --upgrade poetry tox | |
- name: Check the correctness of the project config | |
run: | | |
poetry check | |
- name: Check the quality of the code | |
run: | | |
tox -e black | |
tox -e flake8 | |
tox -e isort | |
ci-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
tox-env: ["py38", "py39", "py310"] | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the base dependencies | |
run: | | |
python3 -m pip install --upgrade tox | |
- name: Install Redis | |
run: | | |
sudo dnf install redis -y | |
- name: Set up user for running the testcases | |
run: | | |
useradd testuser | |
chown -R testuser . | |
- name: Execute tox | |
env: | |
FLASK_CACHE_REDIS_URL: "redis://localhost" | |
FLASK_CACHE_TYPE: "RedisCache" | |
run: | | |
su testuser -c "tox -e ${{ matrix.tox-env }}" |