Skip to content

Commit

Permalink
Merge pull request #306 from QGIS-Contribution/ci/fix-minimum-python-…
Browse files Browse the repository at this point in the history
…version

CI: fix minimum python version
  • Loading branch information
Guts authored Jan 9, 2024
2 parents a967c79 + 85bd842 commit 4ca9a51
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ changelog:
- title: Tooling 🔧
labels:
- ci-cd
- tooling
- title: Documentation 📖
labels:
- documentation
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,43 @@
name: "🐍 Linter"
name: " Linter"

env:
PROJECT_FOLDER: "qgis_resource_sharing"
PYTHON_VERSION: 3.7
PYTHON_VERSION: 3.9

# because linter is a required check, it must be triggered on every push and not filtered on paths
on:
push:
branches: [master]
# paths:
# - '**.py'
paths:
- "**.py"
- .github/workflows/linter.yml

pull_request:
branches: [master]
# paths:
# - '**.py'
paths:
- "**.py"
- .github/workflows/linter.yml

jobs:
flake8:
lint-py:
name: Python 🐍

runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Get source code
uses: actions/checkout@v4

- name: Setup Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "requirements/development.txt"
python-version: ${{ env.PYTHON_VERSION }}

- name: Install project requirements
run: |
python -m pip install -U -r requirements/base.txt
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/development.txt
- name: Lint with flake8
Expand Down

0 comments on commit 4ca9a51

Please sign in to comment.