mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
Refactor the way the settings are handled.
Instead of a "create-settings" command, which didn't contain all the options and was a bit awkward, we now have specific settings used for different things.
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -16,6 +16,11 @@ on:
|
||||
jobs:
|
||||
ci-job:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
DJANGO_SETTINGS_MODULE: settings.ci
|
||||
DJANGO_MEDIA_ROOT: /tmp/wger-test
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
# Note: removed 3.14 because lingua-language-detector has no wheels yet
|
||||
@@ -41,22 +46,19 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv sync --group dev
|
||||
mkdir /tmp/wger-test
|
||||
|
||||
# Only run the tests with coverage for one version of python
|
||||
- name: Test the application with coverage
|
||||
if: matrix.python-version == 3.13
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
wger create-settings
|
||||
coverage run --source='.' ./manage.py test
|
||||
coverage lcov
|
||||
uv run coverage run --source='.' ./manage.py test
|
||||
uv run coverage lcov
|
||||
|
||||
- name: Test the application
|
||||
if: matrix.python-version != 3.13
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
wger create-settings
|
||||
python manage.py test
|
||||
uv run ./manage.py test
|
||||
|
||||
- name: Coveralls
|
||||
if: matrix.python-version == 3.13
|
||||
|
||||
Reference in New Issue
Block a user