Skip to content

Commit 92d810e

Browse files
authored
chore: check for syntax warnings (#404)
1 parent f9c2959 commit 92d810e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,29 @@ jobs:
7676
run: |
7777
pytest --verbose --timeout=30
7878
79+
import-check:
80+
name: Python ${{ matrix.python-version }} import check
81+
runs-on: ubuntu-latest
82+
strategy:
83+
matrix:
84+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
85+
86+
steps:
87+
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
88+
with:
89+
fetch-depth: 1
90+
91+
- name: Set up Python ${{ matrix.python-version }}
92+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
93+
with:
94+
python-version: ${{ matrix.python-version }}
95+
96+
- name: Install posthog
97+
run: pip install .
98+
99+
- name: Check import produces no warnings
100+
run: python -W error -c "import posthog"
101+
79102
django5-integration:
80103
name: Django 5 integration tests
81104
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)