Skip to content

Commit

Permalink
feat: add workflow to check for syntax errors in qgis compatible pyth…
Browse files Browse the repository at this point in the history
…on versions
  • Loading branch information
merydian committed May 24, 2024
1 parent 2f925e7 commit 1167c89
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python_compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python Compatibility Check

on: [push, pull_request]

jobs:
check-syntax:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Check syntax with py_compile
run: |
for file in $(find . -name "*.py"); do
python -m py_compile $file
done

0 comments on commit 1167c89

Please sign in to comment.