Bump mkdocs-material from 9.5.9 to 9.5.15 #58
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: Django CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
tests: | |
name: tests-python${{ matrix.python-version }}-${{ matrix.os }} | |
env: | |
APP_KEY: ${{secrets.APP_KEY}} | |
APP_SECRET: ${{secrets.APP_SECRET}} | |
REFRESH_TOKEN: ${{secrets.REFRESH_TOKEN}} | |
SECRET_KEY: ${{secrets.SECRET_KEY}} | |
USERNAME_TEST: ${{secrets.USERNAME_TEST}} | |
PASSWORD_TEST: ${{secrets.PASSWORD_TEST}} | |
BASE_URL: ${{secrets.BASE_URL}} | |
MONGODB_USERNAME: ${{secrets.MONGODB_USERNAME}} | |
MONGODB_PASSWORD: ${{secrets.MONGODB_PASSWORD}} | |
MONGODB_DATABASE_URL: ${{secrets.MONGODB_DATABASE_URL}} | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.10", "3.12"] | |
os: ["ubuntu-latest", "macOS-latest", "windows-latest"] | |
steps: | |
- name: Print Concurrency Group | |
env: | |
CONCURRENCY_GROUP: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }} | |
run: | | |
echo -e "\033[31;1;4mConcurrency Group\033[0m" | |
echo -e "$CONCURRENCY_GROUP\n" | |
shell: bash | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
pipx install poetry | |
poetry install | |
- name: Run Tests | |
run: | | |
poetry run python runtests.py | |
lint: | |
env: | |
APP_KEY: ${{secrets.APP_KEY}} | |
APP_SECRET: ${{secrets.APP_SECRET}} | |
REFRESH_TOKEN: ${{secrets.REFRESH_TOKEN}} | |
SECRET_KEY: ${{secrets.SECRET_KEY}} | |
USERNAME_TEST: ${{secrets.USERNAME_TEST}} | |
PASSWORD_TEST: ${{secrets.PASSWORD_TEST}} | |
BASE_URL: ${{secrets.BASE_URL}} | |
MONGODB_USERNAME: ${{secrets.MONGODB_USERNAME}} | |
MONGODB_PASSWORD: ${{secrets.MONGODB_PASSWORD}} | |
MONGODB_DATABASE_URL: ${{secrets.MONGODB_DATABASE_URL}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Dependencies | |
run: | | |
pipx install poetry | |
poetry install | |
- name: Run pylint | |
run: | | |
export PYTHONPATH=$PYTHONPATH:$PWD | |
poetry run pylint --load-plugins pylint_django --django-settings-module=tests.test_settings src | |
poetry run pylint --load-plugins pylint_django --django-settings-module=tests.test_settings tests | |
- name: Run black | |
run: | | |
poetry run black --check . | |
- name: Run mypy | |
run: | | |
poetry run mypy src | |
poetry run mypy tests |