Skip to content

Commit 52aa46a

Browse files
authored
Merge pull request #470 from maykinmedia/develop
v1.3 release
2 parents 7b66eb3 + 6107ac5 commit 52aa46a

File tree

208 files changed

+12468
-1984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+12468
-1984
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
sudo apt-get update
5959
sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl
6060
pip install -r requirements/dev.txt codecov
61+
playwright install
62+
playwright install msedge
63+
playwright install-deps
64+
6165
- name: Build frontend
6266
run: |
6367
npm ci
@@ -68,7 +72,7 @@ jobs:
6872
python src/manage.py collectstatic --noinput --link
6973
coverage run src/manage.py test src
7074
env:
71-
DJANGO_SETTINGS_MODULE: open_inwoner.conf.dev
75+
DJANGO_SETTINGS_MODULE: open_inwoner.conf.ci
7276
SECRET_KEY: dummy
7377
DB_USER: postgres
7478
DB_PASSWORD: ''

.github/workflows/code-quality.yml

+41
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,47 @@ jobs:
4949
- name: Run black
5050
run: |
5151
black --check --diff src
52+
53+
migrations:
54+
name: Check for model changes not present in the migrations
55+
runs-on: ubuntu-latest
56+
57+
services:
58+
postgres:
59+
image: postgres:12
60+
env:
61+
POSTGRES_HOST_AUTH_METHOD: trust
62+
ports:
63+
- 5432:5432
64+
# Needed because the postgres container does not provide a healthcheck
65+
options:
66+
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
67+
68+
steps:
69+
- uses: actions/checkout@v3
70+
- uses: actions/setup-python@v4
71+
with:
72+
python-version: '3.9'
73+
- name: Install system packages
74+
run: |
75+
sudo apt-get update \
76+
&& sudo apt-get install -y --no-install-recommends \
77+
libgdal-dev \
78+
gdal-bin
79+
- name: Install dependencies
80+
run: |
81+
sudo apt-get update
82+
sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl
83+
pip install -r requirements/dev.txt
84+
- name: Run manage.py makemigrations --check --dry-run
85+
run: |
86+
src/manage.py makemigrations --check --dry-run
87+
env:
88+
DJANGO_SETTINGS_MODULE: open_inwoner.conf.dev
89+
SECRET_KEY: dummy
90+
DB_USER: postgres
91+
DB_PASSWORD: ''
92+
5293
prettier:
5394
name: Check code formatting with prettier
5495
runs-on: ubuntu-latest

INSTALL.rst

+17-5
Original file line numberDiff line numberDiff line change
@@ -72,34 +72,45 @@ development machine.
7272
$ source env/bin/activate
7373
$ pip install -r requirements/dev.txt
7474
75-
4. Install and build the frontend libraries:
75+
4. Run third-party install commands:
76+
77+
- Install the required browsers for `Playwright`_ end-to-end testing.
78+
79+
.. code-block:: bash
80+
81+
$ playwright install
82+
83+
.. _Playwright: https://playwright.dev/python/
84+
85+
5. Install and build the frontend libraries:
7686

7787
.. code-block:: bash
7888
7989
$ npm install
90+
or as an alternative: npm ci --legacy-peer-deps
8091
$ npm run build
8192
82-
5. Create the statics and database:
93+
6. Create the statics and database:
8394

8495
.. code-block:: bash
8596
8697
$ python src/manage.py collectstatic --link
8798
$ python src/manage.py migrate
8899
89-
6. Create a superuser to access the management interface:
100+
7. Create a superuser to access the management interface:
90101

91102
.. code-block:: bash
92103
93104
$ python src/manage.py createsuperuser
94105
95-
7. You can now run your installation and point your browser to the address
106+
8. You can now run your installation and point your browser to the address
96107
given by this command:
97108

98109
.. code-block:: bash
99110
100111
$ python src/manage.py runserver
101112
102-
8. Create a .env file with database settings. See dotenv.example for an example.
113+
9. Create a .env file with database settings. See dotenv.example for an example.
103114

104115
$ cp dotenv.example .env
105116

@@ -134,6 +145,7 @@ When updating an existing installation:
134145
$ git pull
135146
$ pip install -r requirements/dev.txt
136147
$ npm install
148+
or as an alternative: npm ci --legacy-peer-deps
137149
$ npm run build
138150
139151
3. Update the statics and database:

0 commit comments

Comments
 (0)