Skip to content

Commit 51f34f2

Browse files
author
Umair Siddiquie
authored
ci: replace Django CI with Python-native workflow for Werkzeug
The previous `django.yml` incorrectly assumed a Django project structure. This change replaces it with a generic Python CI workflow that: - Uses `pytest` (or `unittest`) instead of `manage.py test` - Removes Django-specific assumptions - Supports multiple Python versions (3.8–3.11) - Installs the package in editable mode for accurate testing This aligns the CI setup with Werkzeug’s actual architecture as a WSGI utility library, not a Django application.
1 parent cb307c1 commit 51f34f2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.8", "3.9", "3.10", "3.11"]
15+
fail-fast: false
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e .
29+
# If you have test-specific deps, add them too:
30+
# pip install -r requirements-test.txt
31+
32+
- name: Run tests
33+
run: |
34+
# Werkzeug projects typically use pytest or unittest
35+
python -m pytest # or: python -m unittest discover

0 commit comments

Comments
 (0)