Skip to content

Commit

Permalink
testing build package with qgis-plugin-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-McCann-HG committed May 23, 2024
1 parent 7912d85 commit c26ded2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,36 @@ jobs:
QGIS_DISPLAY: ":99"
DOCKER_NETWORK: aims
PLUGIN_NAME: QGIS-AIMS-Plugin
PLUGIN_VERSION: 2.0.0

steps:

- name: Checkout QGIS-AIMS-Plugin
uses: actions/checkout@v3

- name: Create Docker Network
run: bash $BASE_DIR/scripts/steps/create_docker_network.sh
# - name: Create Docker Network
# run: bash $BASE_DIR/scripts/steps/create_docker_network.sh

- name: Launch database container
run: bash $BASE_DIR/scripts/steps/launch_database_container.sh
# - name: Launch database container
# run: bash $BASE_DIR/scripts/steps/launch_database_container.sh

- name: Run database tests
run: bash $BASE_DIR/scripts/steps/run_db_tests.sh
# - name: Run database tests
# run: bash $BASE_DIR/scripts/steps/run_db_tests.sh

- name: Launch QGIS container
run: bash $BASE_DIR/scripts/steps/launch_qgis_container.sh
# - name: Launch QGIS container
# run: bash $BASE_DIR/scripts/steps/launch_qgis_container.sh

# - name: Load test data
# run: bash $BASE_DIR/scripts/steps/load_qgis_test_data.sh
# # - name: Load test data
# # run: bash $BASE_DIR/scripts/steps/load_qgis_test_data.sh

- name: Setup QGIS plugin
run: bash $BASE_DIR/scripts/steps/setup_qgis_plugin.sh
# - name: Setup QGIS plugin
# run: bash $BASE_DIR/scripts/steps/setup_qgis_plugin.sh

- name: Run QGIS tests
run: bash $BASE_DIR/scripts/steps/run_qgis_tests.sh
# - name: Run QGIS tests
# run: bash $BASE_DIR/scripts/steps/run_qgis_tests.sh

- name: Install QGIS Plugin CI
run: python3 -m pip install qgis-plugin-ci --quiet

- name: Package
run: qgis-plugin-ci package ${{ env.PLUGIN_VERSION }}
3 changes: 3 additions & 0 deletions .qgis-plugin-ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugin_path: 'QGIS-AIMS-Plugin'
github_organization_slug: linz
project_slug: qgis_aims_plugin
1 change: 1 addition & 0 deletions QGIS-AIMS-Plugin/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__='2.0.0'
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
qgis-plugin-ci

0 comments on commit c26ded2

Please sign in to comment.