-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
2 changed files
with
75 additions
and
27 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 |
---|---|---|
|
@@ -19,6 +19,7 @@ on: | |
jobs: | ||
|
||
flake8: | ||
name: Flake8 | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
|
@@ -44,33 +45,35 @@ jobs: | |
- name: Run flake8 | ||
run: flake8 | ||
|
||
pylint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
architecture: x64 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/dev.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install Python requirements | ||
run: pip install -r requirements/dev.txt | ||
|
||
- name: Run pylint | ||
run: pylint --rcfile=setup.cfg ./QuickOSM | ||
# pylint: | ||
# name: PyLint | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# | ||
# - name: Setup Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.10' | ||
# architecture: x64 | ||
# | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# | ||
# - uses: actions/[email protected] | ||
# with: | ||
# path: ~/.cache/pip | ||
# key: ${{ runner.os }}-pip-${{ hashFiles('requirements/dev.txt') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-pip- | ||
# | ||
# - name: Install Python requirements | ||
# run: pip install -r requirements/dev.txt | ||
# | ||
# - name: Run pylint | ||
# run: pylint --rcfile=setup.cfg ./QuickOSM | ||
|
||
test-qgis: | ||
name: QGIS Desktop | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
|
@@ -85,9 +88,54 @@ jobs: | |
- name: Running tests | ||
run: ./exec.sh | ||
|
||
package-commit: | ||
needs: [test-qgis, flake8] | ||
|
||
name: Package commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: "pip" | ||
cache-dependency-path: "requirements/packaging.txt" | ||
|
||
- name: Install Qt lrelease | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install qttools5-dev-tools | ||
- name: Install Python requirements | ||
run: pip install -r requirements/packaging.txt | ||
|
||
- name: Set env | ||
run: | | ||
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
echo "VERSION=$(echo ${TAG} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}')-beta" >> $GITHUB_ENV | ||
- name: Package | ||
run: >- | ||
qgis-plugin-ci | ||
package ${{ env.VERSION }} | ||
- name: Unzip | ||
run: unzip QuickOSM.${{ env.VERSION }}.zip -d tmp | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: QuickOSM.${{ env.VERSION }} | ||
path: tmp | ||
|
||
release: | ||
needs: [test-qgis, flake8, pylint] | ||
needs: [test-qgis, flake8] | ||
|
||
name: Package release | ||
runs-on: ubuntu-latest | ||
if: github.repository == '3liz/QuickOSM' && contains(github.ref, 'refs/tags/') | ||
|
||
|
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,6 @@ | ||
"""QuickOSM plugin init.""" | ||
|
||
__copyright__ = 'Copyright 2021, 3Liz' | ||
__copyright__ = 'Copyright 2024, 3Liz' | ||
__license__ = 'GPL version 3' | ||
__email__ = '[email protected]' | ||
|
||
|