-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into biodivsports-public-detail-view
- Loading branch information
Showing
275 changed files
with
4,713 additions
and
826 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
function dockercompose { | ||
# use docker-compose then fallback to new docker compose | ||
docker-compose "$@" | ||
docker compose "$@" | ||
} | ||
|
||
echo "Check dependency graph and fix requirements" | ||
|
||
dockercompose run -T --rm web bash -c "pip-compile -q && pip-compile requirements-dev.in" | ||
|
||
|
||
|
||
echo "run Flake8..." | ||
|
||
dockercompose run -T --rm web flake8 geotrek | ||
status=$? | ||
|
||
if test $status -eq 1 | ||
then | ||
exit $status | ||
else | ||
echo "Flake8 check is ok..." | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Check deps | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- setup.py | ||
- requirements.txt | ||
- requirements-dev.in | ||
- requirements-dev.txt | ||
- .github/workflows/dependencies.yml | ||
|
||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
quality: | ||
name: Checking dependency graph | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-20.04'] | ||
python-version: ['3.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.wheel_dir | ||
key: pip-${{ matrix.python-version }} | ||
restore-keys: | | ||
pip-${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip3 wheel --wheel-dir=~/.wheel_dir pip wheel setuptools | ||
pip3 install --find-links=~/.wheel_dir --upgrade pip wheel setuptools | ||
pip3 wheel --wheel-dir=~/.wheel_dir pip-tools -c requirements-dev.txt | ||
pip3 install --find-links=~/.wheel_dir --upgrade pip-tools -c requirements-dev.txt | ||
- name: Check dependency graph | ||
run: | | ||
pip-compile -q | ||
pip-compile -q requirements-dev.in | ||
- name: Verify dependency graph is ok | ||
uses: tj-actions/verify-changed-files@v13 | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
requirements.txt | ||
requirements-dev.txt | ||
- name: Validating graph | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' && github.actor != 'dependabot[bot]' | ||
run: | | ||
echo "Dependency file(s) changed: ${{ steps.verify-changed-files.outputs.changed_files }}" | ||
core.setFailed('Please add your new dependencies in setup.py and/or requirements-dev.in then run pip-compile to add them in requirements. (see docs/contribute/development)') | ||
- name: Dependabot commit dependencies | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
with: | ||
commit_message: Apply dependencies update by dependabot |
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,32 +1,51 @@ | ||
name: Linting | ||
|
||
on: | ||
push: | ||
pull_request: | ||
paths: | ||
- 'geotrek/**' | ||
- '.github/workflows/lint.yml' | ||
|
||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
jobs: | ||
flake8: | ||
name: Check code styling | ||
runs-on: ubuntu-18.04 | ||
name: Checking Flake8 rules | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-20.04'] | ||
python-version: ['3.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Not evaluated values in migration files | ||
run: | | ||
test $(ls geotrek/*/migrations/*.py | xargs grep -l srid | xargs grep -L SRID | wc -l) -eq 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 # lint with minimal version supported (3.8 in 18.04) | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.wheel_dir | ||
key: pip-${{ matrix.python-version }} | ||
restore-keys: | | ||
pip-${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip3 install --upgrade pip | ||
pip3 install flake8 | ||
pip3 wheel --wheel-dir=~/.wheel_dir flake8 -c requirements-dev.txt | ||
pip3 install --find-links=~/.wheel_dir --upgrade flake8 -c requirements-dev.txt | ||
- name: Flake8 | ||
run: | | ||
flake8 geotrek | ||
- name: Not evaluated values in migration files | ||
run: | | ||
test $(ls geotrek/*/migrations/*.py | xargs grep -l srid | xargs grep -L SRID | wc -l) -eq 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.94.0+dev | ||
2.96.0+dev |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
geotrek-admin (2.94.0+dev) UNRELEASED; urgency=medium | ||
geotrek-admin (2.96.0+dev) UNRELEASED; urgency=medium | ||
|
||
* | ||
* | ||
|
||
-- Marc-Antoine Dupré <[email protected]> Mon, 12 Dec 2022 19:01:52 +0100 | ||
-- Timothée de Montety <[email protected]> Wed, 01 Feb 2023 10:01:12 +0100 | ||
|
||
geotrek-admin (2.96.0) RELEASED; urgency=medium | ||
|
||
* New package release | ||
|
||
-- Timothée de Montety <[email protected]> Tue, 01 Feb 2023 09:58:52 +0100 | ||
|
||
geotrek-admin (2.95.0) RELEASED; urgency=medium | ||
|
||
* New package release | ||
|
||
-- Timothée de Montety <[email protected]> Tue, 24 Jan 2023 11:18:52 +0100 | ||
|
||
geotrek-admin (2.94.0) RELEASED; urgency=medium | ||
|
||
|
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,6 +1,8 @@ | ||
/opt/geotrek-admin/var/conf/extra_static | ||
/opt/geotrek-admin/var/log | ||
/opt/geotrek-admin/var/cache/sessions | ||
/opt/geotrek-admin/var/cache/api_v2 | ||
/opt/geotrek-admin/var/cache/fat | ||
/opt/geotrek-admin/var/media/upload | ||
/opt/geotrek-admin/var/pid | ||
/opt/geotrek-admin/var/mobile |
Oops, something went wrong.