forked from City-of-Helsinki/parkkihubi
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix workflow after Ubuntu and Python upgrade.
- Loading branch information
1 parent
2c60cf7
commit 0e4ec64
Showing
15 changed files
with
47 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,18 +10,18 @@ jobs: | |
tests: | ||
strategy: | ||
matrix: | ||
python: ["3.5", "3.6", "3.8"] | ||
runs-on: ubuntu-20.04 | ||
container: "python:${{matrix.python}}-slim-buster" | ||
python: ["3.10"] #3.10 | ||
runs-on: ubuntu-22.04 #ubuntu:jammy-20231004 | ||
# container: "python:${{matrix.python}}-slim-buster" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Update apt-get sources | ||
run: apt-get update | ||
run: sudo apt-get update | ||
|
||
- name: Install PostgreSQL, PostGIS and GDAL | ||
run: > | ||
apt-get install -y | ||
sudo apt-get install -y | ||
gdal-bin | ||
python3-gdal | ||
postgis | ||
|
@@ -32,14 +32,14 @@ jobs: | |
build-essential | ||
- name: Start PostgreSQL server | ||
run: /etc/init.d/postgresql start | ||
run: sudo /etc/init.d/postgresql start | ||
|
||
- name: Allow root to create PostgreSQL databases | ||
run: su - postgres -c "createuser --createdb root" | ||
- name: Allow runner to create PostgreSQL databases | ||
run: sudo su - postgres -c "createuser --createdb runner" | ||
|
||
- name: Create PostGIS extension | ||
run: > | ||
su - postgres | ||
sudo su - postgres | ||
-c "psql template1 -c 'create extension postgis'" | ||
- name: Install Tox and tox-gh-actions | ||
|
@@ -52,7 +52,7 @@ jobs: | |
uses: codecov/codecov-action@v3 | ||
|
||
test-dockerization: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-22.04 #ubuntu:jammy-20231004 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -72,14 +72,14 @@ jobs: | |
strategy: | ||
matrix: | ||
toxenv: [style, requirements, sanitizer] | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 #ubuntu:jammy-20231004 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.5" | ||
python-version: "3.10" #3.10 | ||
|
||
- name: Install GDAL | ||
run: sudo apt-get install -y gdal-bin | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
from django.urls import re_path | ||
|
||
from drf_jwt_2fa import views | ||
|
||
urlpatterns = [ | ||
re_path('^get-code/', views.obtain_code_token, name='get-code'), | ||
re_path('^auth/', views.obtain_auth_token, name='auth'), | ||
re_path('^refresh/', views.refresh_auth_token, name='refresh'), | ||
re_path('^verify/', views.verify_auth_token, name='verify'), | ||
] | ||
] |
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
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
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
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
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
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
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
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
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
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
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
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