From a6510a7ab91590cc1d7e6713f464165ce738d3fd Mon Sep 17 00:00:00 2001 From: Lloyd Dakin <54085254+LTDakin@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:43:00 -0700 Subject: [PATCH] simply action, rename to django-test --- .github/workflows/django-test.yml | 23 ++++++++++++++++++++++ .github/workflows/django.yml | 32 ------------------------------- 2 files changed, 23 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/django-test.yml delete mode 100644 .github/workflows/django.yml diff --git a/.github/workflows/django-test.yml b/.github/workflows/django-test.yml new file mode 100644 index 0000000..d8f5a28 --- /dev/null +++ b/.github/workflows/django-test.yml @@ -0,0 +1,23 @@ +name: Django Test + +on: + push: + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + - name: Install Poetry + run: python -m pip install --user poetry + - name: Install Dependencies + run: poetry install --no-interaction --no-root + - name: Run Tests + run: python manage.py test diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml deleted file mode 100644 index cbf40a1..0000000 --- a/.github/workflows/django.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Django Test - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.7, 3.8, 3.9] - - steps: - - name: "Checkout" - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install Poetry Action - uses: snok/install-poetry@v1.3.4 - - name: Install Dependencies - run: | - poetry install - - name: Run Tests - run: | - python manage.py test