From 32f706076d98d3a5d721a8a1e1c28ff28bc26c16 Mon Sep 17 00:00:00 2001 From: Tim Hagen Date: Tue, 3 Sep 2024 17:44:25 +0200 Subject: [PATCH] minor fixes to ci --- .github/workflows/tests.yml | 6 +++--- application/Dockerfile.prod | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b3388ce8..15348eeb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: timeout-minutes: 15 strategy: matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -20,13 +20,13 @@ jobs: run: | # Install tira from the repository since the pip version may not be up-to-date enough. # The install musst be editable (-e) since importing from tira fails otherwise - pip3 install -e .[dev,test] + pip3 install .[dev,test] - name: Install dependencies working-directory: ${{github.workspace}}/application run: | # Create a dummy DISRAPTOR_API_KEY sudo bash -c 'mkdir -p "/etc/discourse/" && echo "I am so secret" > "/etc/discourse/client-api-key"' - pip3 install -e .[dev,test] + pip3 install .[dev,test] make setup - name: Run backend tests working-directory: ${{github.workspace}}/application/test diff --git a/application/Dockerfile.prod b/application/Dockerfile.prod index d772de17..6ad3b47c 100644 --- a/application/Dockerfile.prod +++ b/application/Dockerfile.prod @@ -62,6 +62,7 @@ python3 manage.py collectstatic chmod +x ./src/tira_app/endpoints/aha # Run tests +make setup cd test pytest EOF