Skip to content

Switch testing/build suite from Nox to Hatch #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Dec 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4a746be
switch CI to use hatch commands
Archmonger Nov 26, 2024
f3c0ee8
semi-functional test runner with hatch
Archmonger Nov 27, 2024
f7a2923
Add example check workflow
Archmonger Nov 27, 2024
5804c4c
Add JavaScript check
Archmonger Nov 27, 2024
3d46f36
Merge remote-tracking branch 'upstream/main' into switch-from-nox-to-…
Archmonger Nov 27, 2024
a22efb5
Remove `reactpy_django.config.REACTPY_DEBUG_MODE`
Archmonger Nov 27, 2024
2ca4e28
Add runserver command
Archmonger Nov 27, 2024
3353d48
Switch to servestatic
Archmonger Nov 27, 2024
c06ba86
Get the `hatch test` command working
Archmonger Nov 27, 2024
0221585
use head method for the bulk of link checking
Archmonger Nov 27, 2024
437f87f
Auto install playwright in conftest
Archmonger Nov 27, 2024
a75309a
Run multi-db tests
Archmonger Nov 27, 2024
f5976b2
Greater separation of tests
Archmonger Nov 27, 2024
9131a4a
avoid debug keyword
Archmonger Nov 27, 2024
83acfaa
go back to snapshotting Django's debug value
Archmonger Nov 27, 2024
e563287
hatch local builds are fucked, so just re-use the base env
Archmonger Nov 27, 2024
a74c2dd
Add sleep to hello world test
Archmonger Nov 28, 2024
1f1df86
Fix warning on calling DB functions in appconfig.ready
Archmonger Nov 28, 2024
3aac221
Make github test runner more verbose
Archmonger Nov 28, 2024
5178af8
Add docs for new hatch commands
Archmonger Nov 28, 2024
9af272f
Disable link checking
Archmonger Nov 28, 2024
d9eaf07
Put sleep on the correct pyscript file
Archmonger Nov 28, 2024
0e12980
Remove sleep, add longer page timeout for pyscript
Archmonger Nov 28, 2024
4aec1b5
Add notice about ReactPy upper limit change
Archmonger Nov 28, 2024
1048ff3
Rename workflows
Archmonger Nov 28, 2024
1597441
new format for eslint config
Archmonger Nov 28, 2024
0092316
fix javascript:fix command
Archmonger Nov 28, 2024
47cc484
Remove old manifest file
Archmonger Nov 28, 2024
9cb9240
remove duplicates from teardownclass
Archmonger Dec 1, 2024
d4a6649
Increase default timeout
Archmonger Dec 1, 2024
56d0990
self review
Archmonger Dec 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Run multi-db tests
  • Loading branch information
Archmonger committed Nov 27, 2024
commit a75309a6b93cb1e99b2169acd0ee611830eb228d
6 changes: 4 additions & 2 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Python Dependencies
run: pip install --upgrade pip hatch uv
- name: Run Tests
run: hatch test --python ${{ matrix.python-version }}
- name: Run Single DB Tests
run: hatch test --python ${{ matrix.python-version }} --ds=test_app.settings_single_db
- name: Run Multi-DB Tests
run: hatch test --python ${{ matrix.python-version }} --ds=test_app.settings_multi_db