Skip to content

Commit 9404eaa

Browse files
Testing to see if switching to a uv build works with GHA
Docassemble >=1.8.0 going too slow / too big / breaking GHA when run. Can't switch to 1.7.7 because one of the deps was yanked (multidict), so we need something can work with the latest version. Going to try switching our build process to use `uv` instead of plain pip to run faster (and maybe use less disk? unsure).
1 parent 2a36271 commit 9404eaa

5 files changed

Lines changed: 5429 additions & 8 deletions

File tree

.github/workflows/unittests.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,23 @@ jobs:
2121
runs-on: ubuntu-latest
2222
name: Run python-only unit and integration tests
2323
steps:
24-
- uses: SuffolkLITLab/ALActions/pythontests@main
24+
- run: sudo apt-get update && sudo apt-get -y install libcurl4-openssl-dev build-essential python3-dev libldap2-dev libsasl2-dev slapd ldap-utils tox lcov libzbar0 libaugeas0 augeas-lenses
25+
- run: echo "ISUNITTEST=true" >> $GITHUB_ENV
26+
27+
- uses: actions/checkout@v4
28+
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v6
31+
32+
- name: Install the project
33+
run: uv sync --locked --all-extras --dev
34+
35+
- name: Run mypy
36+
run: uv run python -m mypy . --exclude '^build/' --explicit-package-bases
37+
38+
- name: Run tests
39+
run: |
40+
if [[ -f docassemble/__init__.py ]]; then
41+
mv docassemble/__init__.py docassemble/__init__.py.bak
42+
fi
43+
uv run python -m unittest discover docassemble

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
rcfile
1010
**/.mypy_cache/**
1111
build/
12+
.DS_Store
1213

1314
# Kiln stuff
1415
alkiln_tests_*
1516
alkiln-*
1617
cucumber-report.txt
1718
debug_log.txt
1819
runtime_config.json
20+
21+
# Python testing stuff
22+
.coverage
23+
coverage_html

docassemble/EFSPIntegration/requirements.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

pyproject.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
# Just for local builds: for publishing / installing to docassemble < 1.8.0
2+
# setup.py is still used.
3+
[project]
4+
name = "docassemble.EFSPIntegration"
5+
version = "1.6.0"
6+
readme = "README.md"
7+
requires-python=">=3.10,<=3.12"
8+
dependencies = [
9+
"docassemble.AssemblyLine>=3.5.0",
10+
"docassemble.ALToolbox>=0.6.2",
11+
"requests>2.25.1"
12+
]
13+
license="MIT"
14+
license-files = ["LICEN[CS]E*"]
15+
authors = [
16+
{ name="Bryce Willey", email="bryce.willey@suffolk.edu" },
17+
]
18+
19+
[project.urls]
20+
GitHub = "https://github.com/SuffolkLITLab/docassemble-EFSPIntegration"
21+
22+
[build-system]
23+
requires = [
24+
"setuptools>=60",
25+
"setuptools-scm>=8.1"]
26+
build-backend = "setuptools.build_meta"
27+
28+
[tool.setuptools]
29+
packages = ["docassemble.EFSPIntegration"]
30+
31+
[dependency-groups]
32+
dev = [
33+
"docassemble.base==1.8.4",
34+
"docassemble.webapp==1.8.4",
35+
"types-requests",
36+
"types-python-dateutil",
37+
"mypy",
38+
"black",
39+
]
40+
41+
142
[tool.black]
243
extend-exclude = '(__init__.py|setup.py)'
344

0 commit comments

Comments
 (0)