Mve user management #403
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
- MVE[0-9] | |
jobs: | |
build: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
statuses: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.2' | |
- name: Cache python dependencies | |
id: cache-pydeps | |
uses: actions/cache@v4 | |
with: | |
path: venv | |
key: ${{ runner.os }}-pydeps | |
- name: Create virtual environment and install dependencies | |
run: | | |
python3 -m venv venv | |
venv/bin/pip install django django-stubs djangorestframework djangorestframework-stubs django-cors-headers django-health-check psycopg[binary] | |
- name: Copy the dependencies | |
run: | | |
cp -r venv /home/runner/work/_temp/_github_workflow | |
- name: Super-linter | |
uses: super-linter/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_TYPESCRIPT_STANDARD: false | |
HADOLINT_IGNORE: "DL3013 DL3018 DL3042" | |
PYTHON_PYLINT_CONFIG_FILE: ".pylintrc" | |
LINTER_RULES_PATH: .github/linters | |
PYTHONPATH: "/github/workspace/:\ | |
/github/workflow/venv/lib/python3.12/site-packages" | |
FILTER_REGEX_EXCLUDE: "back/transcendence_django/old_tests/*|back/transcendence_django/tests/*" |