Compare commits

...

6 Commits

Author SHA1 Message Date
9f55f3b207 chore(ci): switch python_version to python-version 2024-11-28 21:50:40 +00:00
f5b13c7d14 chore(ci): use Python 3.13 in CI 2024-11-28 21:50:40 +00:00
d753053e87 chore(docker)(deps): bump python from 3.11-slim to 3.13-slim
Bumps python from 3.11-slim to 3.13-slim.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-28 21:22:31 +00:00
33186a47c7 chore(actions)(deps): bump actions/checkout from 4.1.7 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.7...v4.2.2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-28 21:16:26 +00:00
948d223fa4 fix(tests): config.approved_domains returns empty list when not set 2024-11-28 21:14:31 +00:00
70a92c76db chore(ci): run tests on release workflow 2024-11-24 11:02:31 +00:00
4 changed files with 14 additions and 4 deletions

View File

@ -13,6 +13,8 @@ on:
jobs: jobs:
ci: ci:
uses: luketainton/gha-workflows/.github/workflows/ci-python-poetry-with-docker.yml@main uses: luketainton/gha-workflows/.github/workflows/ci-python-poetry-with-docker.yml@main
with:
python-version: 3.13
secrets: secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

View File

@ -5,6 +5,14 @@ on:
- cron: "0 9 * * 0" - cron: "0 9 * * 0"
jobs: jobs:
test:
uses: luketainton/gha-workflows/.github/workflows/ci-python-poetry-with-docker.yml@main
with:
python-version: 3.13
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
create_release: create_release:
name: Create Release name: Create Release
uses: luketainton/gha-workflows/.github/workflows/create-release.yml@main uses: luketainton/gha-workflows/.github/workflows/create-release.yml@main

View File

@ -1,4 +1,4 @@
FROM python:3.11-slim FROM python:3.13-slim
LABEL maintainer="Luke Tainton <luke@tainton.uk>" LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/roboluke-tasks" LABEL org.opencontainers.image.source="https://github.com/luketainton/roboluke-tasks"
USER root USER root

View File

@ -25,9 +25,9 @@ def test_config_no_admin_vars() -> None:
# needs to be imported AFTER environment variables are set # needs to be imported AFTER environment variables are set
from app.utils.config import config # pragma: no cover from app.utils.config import config # pragma: no cover
assert config.approved_domains is None assert config.approved_domains == []
assert config.approved_rooms is None assert config.approved_rooms == []
assert config.approved_users is None assert config.approved_users == []
assert config.admin_emails == config_vars["ADMIN_EMAIL"].split(",") assert config.admin_emails == config_vars["ADMIN_EMAIL"].split(",")
assert config.admin_first_name == config_vars["ADMIN_FIRST_NAME"] assert config.admin_first_name == config_vars["ADMIN_FIRST_NAME"]
assert config.bot_name == config_vars["BOT_NAME"] assert config.bot_name == config_vars["BOT_NAME"]