Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f29e25a
build(pre-commit): pre-commit autoupdate by ci
pre-commit-ci[bot] Jul 7, 2025
f0972f4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 7, 2025
06759e4
build(pre-commit): pre-commit autoupdate by ci
pre-commit-ci[bot] Aug 4, 2025
eb08ba3
build(deps-dev): bump webpack in the webpack group
dependabot[bot] Aug 1, 2025
3bf530f
build(deps-dev): bump the babel group with 3 updates
dependabot[bot] Aug 1, 2025
f52a785
build(deps): bump @uiw/react-codemirror in the prod-dependencies group
dependabot[bot] Aug 1, 2025
dc100d0
build(deps): bump the github-actions group with 2 updates
dependabot[bot] Sep 1, 2025
585e544
build(deps-dev): bump sass in the dev-dependencies group
dependabot[bot] Sep 1, 2025
c7ac21c
build(deps): bump @uiw/react-codemirror in the prod-dependencies group
dependabot[bot] Sep 1, 2025
ec69841
build(pre-commit): pre-commit autoupdate by ci
pre-commit-ci[bot] Sep 1, 2025
ef65430
build(deps): update django-allauth[openid,socialaccount] requirement
dependabot[bot] Sep 1, 2025
b111cd1
build(deps): update defusedcsv requirement from <3.0,>=2.0 to >=2.0,<4.0
dependabot[bot] Oct 1, 2025
6015eeb
build(deps): bump the github-actions group with 2 updates
dependabot[bot] Oct 1, 2025
7a8e9b3
build(deps): bump the optional group with 2 updates
dependabot[bot] Oct 1, 2025
3c46c4f
build(deps-dev): bump the dev-dependencies group with 2 updates
dependabot[bot] Oct 1, 2025
fd67125
ci: prefer build-and-inspect-python-package over custom solution
afuetterer Oct 15, 2025
5bc0b55
Merge pull request #1445 from afuetterer/1089-baipp
MyPyDavid Oct 20, 2025
d6ae5f5
ci: pin gha version
afuetterer Oct 21, 2025
7d725f3
Merge pull request #1448 from afuetterer/gha
MyPyDavid Oct 21, 2025
9dfab60
chore: clean up obsolete dependencies
afuetterer Oct 21, 2025
22e622f
Merge pull request #1451 from afuetterer/wheel
MyPyDavid Oct 21, 2025
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
67 changes: 19 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
name: Build python wheel
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
# update the version
- name: Get short commit SHA
run: |
Expand All @@ -53,42 +53,13 @@ jobs:
run: |
sed -i "s/__version__ = .*/__version__ = \"${{ steps.new-version.outputs.new_version }}\"/" rdmo/__init__.py
# build the webpack bundle
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
- run: npm ci && npm run build:dist
# build the wheel
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- run: |
python -m pip install --upgrade pip build[uv] twine
python -m pip --version
- name: Build the wheel
run: python -m build --installer=uv
- name: Check the metadata of wheel and sdist
run: python -m twine check --strict dist/*
- name: Install package from built wheel
run: python -m pip install --no-compile dist/rdmo*.whl # do not create __pycache__/*.pyc files
- name: Write info to step summary
run: |
{
echo -e "# ✓ Wheel successfully built (v${{ steps.new-version.outputs.new_version }})\n\n"
echo '<details><summary>Information about installed wheel</summary>'
echo -e "\n\`\`\`console"
echo "$ python -m pip show --files --verbose rdmo"
python -m pip show --files --verbose rdmo
echo -e "\`\`\`\n</details>"
} >> $GITHUB_STEP_SUMMARY
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/rdmo*.whl
if-no-files-found: error
retention-days: 30
- name: Build and inspect package
uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0

test:
name: "Test (Python: ${{ matrix.python-version }}, DB: ${{ matrix.db-backend }})"
Expand All @@ -99,16 +70,16 @@ jobs:
python-version: ['3.9', '3.13']
db-backend: [mysql, postgres]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Download wheel
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: wheel
name: Packages
path: dist
- name: Install Dependencies
run: |
Expand Down Expand Up @@ -157,16 +128,16 @@ jobs:
python-version: ['3.13']
db-backend: [postgres]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Download wheel
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: wheel
name: Packages
path: dist
- name: Install Dependencies
run: |
Expand Down Expand Up @@ -217,8 +188,8 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: pip
Expand All @@ -230,15 +201,15 @@ jobs:
needs: build-wheel
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: pip
- name: Download wheel
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: wheel
name: Packages
path: dist
- name: Install os requirements for python-ldap
run: sudo apt-get update && sudo apt-get install --yes libldap2-dev libsasl2-dev
Expand All @@ -247,7 +218,7 @@ jobs:
run: python -m pip install --no-compile "$(ls dist/*.whl)[allauth,ci,dev,gunicorn,ldap,mysql,postgres,pytest]"
- name: Verify installed packages have compatible dependencies
run: python -m pip check
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
hooks:
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-ast
- id: check-json
Expand All @@ -22,12 +22,12 @@ repos:
exclude: \.dot$
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
rev: v0.12.11
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.28.0
rev: v9.34.0
hooks:
- id: eslint
args: [--fix, --color]
Expand Down
Loading