From 22f4c7428cbfd7bbb0bceda5ebcfb7821c980717 Mon Sep 17 00:00:00 2001 From: Lucas Theis Date: Sun, 27 Oct 2024 23:19:38 +0000 Subject: [PATCH] Minor fixes. --- .github/workflows/ci.yaml | 6 +++--- requirements.txt | 3 +++ runtests.py | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 63a3286..1bd73fe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,10 +2,10 @@ name: Tests on: push: branches: - - main + - master pull_request: branches: - - main + - master jobs: test: runs-on: ubuntu-latest @@ -22,7 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.11' - name: Install dependencies run: pip install -r requirements.txt - name: Run tests and collect coverage diff --git a/requirements.txt b/requirements.txt index 9caa46c..b65fcd9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,4 @@ +coverage==7.5.1 +django==5.1.2 pillow==10.3.0 +selenium==4.24.0 diff --git a/runtests.py b/runtests.py index 751f1dc..4d45515 100644 --- a/runtests.py +++ b/runtests.py @@ -3,7 +3,7 @@ import os import sys -os.environ['DJANGO_SETTINGS_MODULE'] = 'publications.test_settings' +os.environ['DJANGO_SETTINGS_MODULE'] = 'publications.settings.test' import django from django.conf import settings @@ -16,7 +16,7 @@ def main(): TestRunner = get_runner(settings) test_runner = TestRunner() - failures = test_runner.run_tests(['publications.settings.test']) + failures = test_runner.run_tests(['publications.test']) sys.exit(bool(failures))