Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade backend dependencies. #729

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,26 @@ jobs:
- name: Check yapf
run: python -m pipenv run yapf --parallel --recursive --diff .

# TODO: broken test - https://github.com/Samfundet/Samfundet4/issues/730
- name: Verify migrations
# python -m pipenv run migrations:verify
run: |
python -m pipenv run python manage.py makemigrations --check --dry-run --noinput --verbosity 2
python -m pipenv run python manage.py migrate --verbosity 2
python -m pipenv run migrations:apply

- name: Run tests
run: python -m pipenv run pytest
run: python -m pipenv run pytest:run

- name: Run bandit
run: python -m pipenv run bandit --recursive --ini .bandit .
run: python -m pipenv run bandit:run

- name: Run flake8
run: python -m pipenv run flake8 --config=.flake8 .
run: python -m pipenv run flake8:run

- name: Run mypy
run: python -m pipenv run mypy --config-file mypy.ini .
run: python -m pipenv run mypy:run

- name: Run seeds
run: python -m pipenv run python manage.py seed
run: python -m pipenv run seed:run

job_verify_docker:
name: Verify docker
Expand Down Expand Up @@ -113,7 +114,7 @@ jobs:
# run: docker compose up cypress

- name: Stop containers
run: docker compose down
run: docker compose down

job_verify_frontend_lint:
name: Verify frontend
Expand Down
2 changes: 2 additions & 0 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ name = "pypi"
"pipenv:rm" = "pipenv --rm" # Completely remove virtual environment.
"pipenv:shell" = "pipenv shell" # Opens a shell within the virtual environment.
"mypy:run" = "pipenv run mypy --config-file mypy.ini ."
"migrations:make" = "pipenv run python manage.py makemigrations --noinput"
"migrations:verify" = "pipenv run python manage.py makemigrations --check --dry-run --noinput --verbosity 2"
"migrations:apply" = "pipenv run python manage.py migrate"
"bandit:run" = "pipenv run bandit --recursive --ini .bandit ."
"flake8:run" = "pipenv run flake8 --config=.flake8 ."
"yapf:diff" = "pipenv run yapf --parallel --recursive --diff ." # Dry-run yapf on all files in the project.
Expand Down
Loading
Loading