-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
118 additions
and
118 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,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
export $(grep -v '^#' .env | xargs) | ||
|
||
docker exec -it qgis sh \ | ||
docker exec -t qgis sh \ | ||
-c "cd /tests_directory/${PLUGIN_NAME} && qgis_testrunner.sh qgis_plugin_tools.infrastructure.test_runner.test_package" |
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 was deleted.
Oops, something went wrong.
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,107 @@ | ||
name: 🎳 Tests | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
unittests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: .docker | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Launching docker-compose | ||
run: ./start.sh with-qgis | ||
|
||
- name: Running tests | ||
run: ./exec.sh | ||
|
||
migration: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: .docker | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Launching docker-compose | ||
run: ./start.sh | ||
|
||
- name: Running tests | ||
run: ./install_migrate_generate.sh | ||
|
||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
architecture: x64 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install Python requirements | ||
run: pip install -r requirements/requirements-dev.txt | ||
|
||
- name: Run flake8 | ||
run: flake8 | ||
|
||
packaging: | ||
needs: [flake8, unittests, migration] | ||
runs-on: ubuntu-latest | ||
if: github.repository == '3liz/qgis-gestion_base_adresse-plugin' && contains(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install qgis-plugin-ci | ||
run: pip3 install qgis-plugin-ci==1.8.4 | ||
|
||
- name : Fetch current changelog | ||
run: | | ||
qgis-plugin-ci changelog ${GITHUB_REF/refs\/tags\//} >> release.md | ||
cat release.md | ||
- name: Create release on GitHub | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_HUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body_path: release.md | ||
|
||
- name: Package the plugin and deploy it in the release | ||
run: >- | ||
qgis-plugin-ci | ||
release ${GITHUB_REF/refs\/tags\//} | ||
--github-token ${{ secrets.BOT_HUB_TOKEN }} | ||
--create-plugin-repo |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
name: Deploy to Github Pages | ||
name: 📖 Deploy documentation | ||
|
||
on: | ||
push: | ||
|
@@ -32,15 +32,15 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-doc.txt') }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/requirements-doc.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install -r requirements-doc.txt | ||
python -m pip install -r requirements/requirements-doc.txt | ||
- name: Copy CHANGELOG.md and CONTRIBUTING.md | ||
run: | | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -60,6 +60,7 @@ theme: | |
features: | ||
- navigation.tabs | ||
- navigation.tabs.sticky | ||
- navigation.top | ||
|
||
extra: | ||
social: | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 @@ | ||
mkdocs-material>=7.1.0,<7.2.0 |