Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d12a950
refactor(translator): move into src layout and use uv properly
crankynetmaam Feb 25, 2026
9c70bdc
fix(simple-history): upgrade to 3.4 to avoid pkg_resources dependency…
crankynetmaam Feb 25, 2026
51c0027
fix(protobuf): I think that now the imports are in the right place now.
crankynetmaam Feb 25, 2026
76e8e75
ci: run again please
crankynetmaam Feb 26, 2026
bf83023
ci(behave): use new behave path
crankynetmaam Feb 26, 2026
27f84f2
ci(coveralls): don't fail when coveralls has a multiday outage
crankynetmaam Feb 26, 2026
d8f468b
tests(translator): fix import
crankynetmaam Feb 26, 2026
ba4c7f1
refactor(django): move scram django app to src layout and pyproject.t…
crankynetmaam Feb 26, 2026
fab45c5
forgot a change
crankynetmaam Feb 26, 2026
3da61ce
versionsssss
crankynetmaam Feb 27, 2026
dfb2953
Merge branch 'topic/chriscummings/uv-workspaces' into topic/chriscumm…
crankynetmaam Feb 27, 2026
b3c6c66
Let's actually use the workspace level lock now that we've moved enou…
crankynetmaam Feb 27, 2026
7fbb36a
Merge branch 'topic/chriscummings/uv-workspaces' into topic/chriscumm…
crankynetmaam Feb 27, 2026
0c34e56
chore(ruff): we shouldn't run ruff on migrations
crankynetmaam Feb 27, 2026
a9f9607
Merge branch 'main' into topic/chriscummings/uv-workspaces-django
crankynetmaam Feb 27, 2026
a3c7ac3
Merge branch 'main' into topic/chriscummings/uv-workspaces-django
crankynetmaam May 1, 2026
4f5f254
chore(pre-commit): bump versions
crankynetmaam May 4, 2026
974db7e
ci(gh-actions): cleanup workflows and add `act`
crankynetmaam May 4, 2026
68e53fd
set wf to read for explicit permissions
crankynetmaam May 4, 2026
a8712b9
chore(gh-actions): add explicit permissions
crankynetmaam May 4, 2026
848a16b
Merge branch 'main' into topic/chriscummings/cleanup-test-runs
crankynetmaam May 4, 2026
69664c1
chore(lint): update whitespace
crankynetmaam May 4, 2026
57d4ec7
chore(ruff): whitespace
crankynetmaam May 4, 2026
43d0558
Merge branch 'topic/chriscummings/cleanup-test-runs' of github.com:es…
crankynetmaam May 4, 2026
06b0ba4
chore(gh-actions): okay we need write perms for some things
crankynetmaam May 4, 2026
5e8c9a2
fix(gh-actions): finish renaming targets
crankynetmaam May 4, 2026
3d5f5f3
fix(gh-actions): and some more!
crankynetmaam May 4, 2026
cf2e512
ci(gh-actions): run more sanely
crankynetmaam May 4, 2026
517a90e
chore(makefile): rename and re-order all targets for consistency
crankynetmaam May 4, 2026
307ac45
feat(make): add equal targets for translator/django
crankynetmaam May 4, 2026
12d928a
fix(gh-actions): call the correct make target..
crankynetmaam May 4, 2026
9bc4603
fix(tests): translator coverage should work now
crankynetmaam May 4, 2026
c7d15e9
ci(coverage): min coverage change for django
crankynetmaam May 5, 2026
0407763
Merge branch 'main' into topic/chriscummings/cleanup-test-runs
crankynetmaam May 11, 2026
3049a41
whoops, accidental commit of stuff i wasn't ready for yet
crankynetmaam May 11, 2026
a976e6c
ci(type-checking): add type check workflow but make it neutral
crankynetmaam May 11, 2026
d5978e3
ci(types): let's actually type check, why not?
crankynetmaam May 11, 2026
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
84 changes: 0 additions & 84 deletions .github/workflows/behave_next_python.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/coverage-finish.yml

This file was deleted.

86 changes: 46 additions & 40 deletions .github/workflows/behave.yml → .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
---
name: Run behave
name: Run Django Tests

on:
push:
branches:
- "**"
- main
pull_request:
branches:
- main
- develop
- '**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Comment thread
samoehlert marked this conversation as resolved.
cancel-in-progress: true

permissions:
contents: read
pull-requests: write
checks: write
jobs:
behave:
name: Run Behave
django:
name: Run Django Tests
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.11", "3.12"]

steps:
- name: Check out the code
Expand All @@ -29,76 +32,79 @@ jobs:
- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose make

- name: Check Docker state (pre-build)
run: docker ps

- name: Login to Docker Hub
if: ${{ !env.ACT }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_PULL_AUTH_USER }}
password: ${{ secrets.DOCKER_HUB_PULL_AUTH_PAT }}

- name: Check Docker state (pre-build)
run: docker ps

- name: Build Docker images
run: make build
env:
PYTHON_IMAGE_VER: "${{ matrix.python-version }}"

- name: Check for missing migrations
run: docker compose run --rm django python manage.py makemigrations --check

- name: Migrate Database
run: make migrate
run: docker compose run --rm django python manage.py migrate --fake-initial --noinput -v 2

- name: Run Application
run: make run

- name: Check Docker state (pre-test)
run: docker ps

- name: Run pytest + behave with Coverage
- name: Run Django Pytest
env:
POSTGRES_USER: scram
POSTGRES_DB: test_scram
run: make pytest-django

- name: Run Django Behave (Acceptance Tests)
env:
POSTGRES_USER: scram
POSTGRES_DB: test_scram
run: make behave-django

- name: Run Django Integration Tests
env:
POSTGRES_USER: scram
POSTGRES_DB: test_scram
run: make coverage.xml
run: make integration-django

- name: Generate Coverage Report
run: |
docker compose run --rm -w /app django coverage report
docker compose run --rm -w /app django coverage xml

- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2

- name: Upload Coverage to Coveralls
if: matrix.python-version == '3.12'
if: ${{ !env.ACT }}
uses: coverallsapp/github-action@v2
with:
parallel: true
flag-name: behave
fail-on-error: false
fail-on-error: false

- name: Upload Coverage to GitHub
if: matrix.python-version == '3.12'
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: django/coverage.xml

- name: Display Coverage Metrics
if: matrix.python-version == '3.12'
if: ${{ !env.ACT }}
uses: 5monkeys/cobertura-action@v14
with:
minimum_coverage: "50"
report_name: "Django Pytest/Behave Coverage"
minimum_coverage: "70"
report_name: "Django Coverage"
path: django/coverage.xml


- name: Check Docker state (post-test)
if: always()
run: docker ps

- name: Stop Services
if: always()
run: make stop

- name: Clean Up
if: always()
run: make clean
110 changes: 0 additions & 110 deletions .github/workflows/pytest.yml

This file was deleted.

Loading
Loading