-
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.
Merge branch 'master' into 285-prepare-yearly-report
- Loading branch information
Showing
66 changed files
with
2,574 additions
and
2,197 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 |
---|---|---|
@@ -1,39 +1,44 @@ | ||
name: Docker | ||
name: Lint, Check, Build, Test | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
|
||
build_package_lint_check: | ||
name: Build, package, lint, check | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install requirements | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
- name: Setup, build, install | ||
run: | | ||
pip3 install -r requirements.txt | ||
pip install build | ||
python -m build . | ||
pip install ./dist/comptages-0.1-py3-none-any.whl[check] | ||
- name: Package | ||
run: qgis-plugin-ci package 'test' | ||
- name: Lint | ||
run: black . --check | ||
|
||
- name: Install QGIS | ||
run: | | ||
sudo apt update && sudo apt install -y qgis | ||
# - name: Check | ||
# run: pyright . | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Start docker stack | ||
run: docker-compose up --build -d | ||
|
||
- name: Wait a little bit | ||
run: sleep 5 | ||
|
||
- name: Running migrations | ||
run: python manage.py migrate | ||
|
||
run: docker compose up db -d | ||
- name: Running tests | ||
run: | | ||
python manage.py test comptages.test -v2 | ||
run: docker compose run qgis_tester |
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 |
---|---|---|
|
@@ -4,3 +4,6 @@ comptages/__pycache__/ | |
.docker/tests/ | ||
.docker/tests/screenshot.png | ||
.env | ||
.vscode/settings.json | ||
shell.nix | ||
Pipfile |
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,5 @@ | ||
FROM opengisch/qgis:3.28.0-jammy | ||
RUN apt update && apt install iputils-ping glibc-tools libpq-dev python3-pip -y | ||
COPY requirements.txt . | ||
RUN pip3 install -r requirements.txt | ||
WORKDIR /OpenComptage |
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
Oops, something went wrong.