From 7df337a21e576d25fb69910c68377caf1375e635 Mon Sep 17 00:00:00 2001 From: jonandernovella Date: Tue, 19 Sep 2023 15:41:12 +0200 Subject: [PATCH 1/2] feat: Run django tests --- .github/workflows/django-tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/django-tests.yml diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml new file mode 100644 index 0000000..7cdcd6a --- /dev/null +++ b/.github/workflows/django-tests.yml @@ -0,0 +1,28 @@ +name: Django Tests + +on: [push, pull_request] + +jobs: + django-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: true + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10 + + - name: Install dependencies + run: | + pip install -r mimir-server/requirements.txt + working-directory: ${{ github.workspace }} + + - name: Run Django Tests + run: | + python manage.py test + working-directory: ${{ github.workspace }}/mimir-server From da911e9ea4c3c33c3273033b87a1ceec4df1a509 Mon Sep 17 00:00:00 2001 From: jonandernovella Date: Tue, 19 Sep 2023 15:45:31 +0200 Subject: [PATCH 2/2] fix: Fixed ubuntu version and quoting --- .github/workflows/django-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml index 7cdcd6a..0c4623a 100644 --- a/.github/workflows/django-tests.yml +++ b/.github/workflows/django-tests.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: django-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10 + python-version: '3.10' - name: Install dependencies run: |