chore: prepare for release 1.2.0 (#884) #2101
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: Check backend | |
on: [push] | |
permissions: read-all | |
env: | |
POETRY_NO_INTERACTION: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
working-directory: ./backend | |
run: | | |
python -m pip install --upgrade poetry | |
python -m poetry install --without prod,unittests --no-root | |
- name: Flake8 | |
working-directory: ./backend | |
run: | | |
poetry run flake8 . --count --show-source --statistics | |
- name: Black | |
working-directory: ./backend | |
run: | | |
poetry run black . --check | |
- name: isort | |
working-directory: ./backend | |
run: | | |
poetry run isort . -c | |
- name: MyPy | |
working-directory: ./backend | |
run: | | |
./bin/run_mypy.sh | |
- name: PyLint | |
working-directory: ./backend | |
run: | | |
./bin/run_pylint.sh | |
- name: Unittests | |
run: | | |
docker build -f docker/backend/unittests/django/Dockerfile -t secobserve_backend_unittests:latest . | |
docker run --rm --env-file docker/backend/unittests/envs/django --env-file docker/backend/unittests/envs/sqlite secobserve_backend_unittests:latest /start |