From 19c5f282d2f3288546a088fffe04f297f7f732b5 Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Thu, 28 Jan 2021 02:17:40 +0000 Subject: [PATCH] Does this work? --- .github/workflows/django.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index d48de342..d704fbaa 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -15,11 +15,6 @@ jobs: - uses: actions/checkout@v2 - uses: bahmutov/npm-install@v1 - run: node node_modules/gulp/bin/gulp build - - name: Cache gulp output - uses: actions/cache@v2 - with: - path: static/ - key: static-${{ hashFiles('package-lock.json') }}-${{ hashFiles('pipeline/source_assets') }} - name: Set up Python uses: actions/setup-python@v2 with: @@ -40,9 +35,14 @@ jobs: - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install pycodestyle coverage coveralls django_coverage_plugin + pip install pycodestyle pip install --upgrade --upgrade-strategy eager -r requirements.txt python manage.py collectstatic --noinput + - name: Cache gulp output + uses: actions/cache@v2 + with: + path: static/ + key: static-${{ hashFiles('package-lock.json') }}-${{ hashFiles('pipeline/source_assets') }} - name: Basic Checks run: | pycodestyle . --exclude=migrations,node_modules @@ -58,6 +58,10 @@ jobs: matrix: test-group: ["RIGS", "versioning", "users", "assets"] steps: + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip3 install --upgrade coverage coveralls django_coverage_plugin - name: Run Tests run: coverage run -p -m pytest --cov=${{ matrix.test-group }} --cov-append -n 8 ${{ matrix.test-group }}/tests/ - uses: actions/upload-artifact@v2