From 5178614d7116415fae2342bd0aaad39ed6bde3e4 Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Sun, 11 Dec 2022 01:01:01 +0000 Subject: [PATCH 1/4] Update django.yml Rollback runner for now --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 67d99cea..282fe6f7 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -9,7 +9,7 @@ on: jobs: build: if: "!contains(github.event.head_commit.message, '[ci skip]')" - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: From 9818ed995ff89a5176b01837416f016a2d1afda7 Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Sun, 11 Dec 2022 14:13:33 +0000 Subject: [PATCH 2/4] Update django.yml --- .github/workflows/django.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 282fe6f7..b34cda79 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.9 - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: pcache with: path: ~/.local/share/virtualenvs @@ -27,12 +27,12 @@ jobs: ${{ runner.os }}-pipenv- - name: Install Dependencies run: | - python -m pip install --upgrade pip pipenv + python3 -m pip install --upgrade pip pipenv pipenv install -d # if: steps.pcache.outputs.cache-hit != 'true' - name: Cache Static Files id: static-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: 'pipeline/built_assets' key: ${{ hashFiles('package-lock.json') }}-${{ hashFiles('pipeline/source_assets') }} @@ -43,9 +43,9 @@ jobs: - name: Basic Checks run: | pipenv run pycodestyle . --exclude=migrations,node_modules - pipenv run python manage.py check - pipenv run python manage.py makemigrations --check --dry-run - pipenv run python manage.py collectstatic --noinput + pipenv run python3 manage.py check + pipenv run python3 manage.py makemigrations --check --dry-run + pipenv run python3 manage.py collectstatic --noinput - name: Run Tests run: pipenv run pytest -n auto -vv --cov - uses: actions/upload-artifact@v2 From 52fd6623409d3dc8e0ebb4c59e3391e1ab45797f Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Sun, 11 Dec 2022 14:13:47 +0000 Subject: [PATCH 3/4] Update django.yml --- .github/workflows/django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index b34cda79..84cb7504 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -9,7 +9,7 @@ on: jobs: build: if: "!contains(github.event.head_commit.message, '[ci skip]')" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: From 86c033ba9759643da671ca0f3c97960bda1c9b1d Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Sun, 11 Dec 2022 14:18:05 +0000 Subject: [PATCH 4/4] Update django.yml --- .github/workflows/django.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 84cb7504..41aded15 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -13,18 +13,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.9 - - uses: actions/cache@v3 - id: pcache - with: - path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }} - restore-keys: | - ${{ runner.os }}-pipenv- + cache: 'pipenv' - name: Install Dependencies run: | python3 -m pip install --upgrade pip pipenv