Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucastheis committed Oct 27, 2024
1 parent e4bd801 commit 22f4c74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Tests
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
coverage==7.5.1
django==5.1.2
pillow==10.3.0
selenium==4.24.0
4 changes: 2 additions & 2 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))

Expand Down

0 comments on commit 22f4c74

Please sign in to comment.