Helps if I don't delete the pipeline folder prior to collectstatic

This commit is contained in:
2021-01-30 03:26:09 +00:00
parent 9b341ea583
commit 1274140c39
2 changed files with 6 additions and 17 deletions

View File

@@ -10,12 +10,12 @@ jobs:
build:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
strategy:
matrix:
browser: ['chrome']
# strategy:
# matrix:
# browser: ['chrome']
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BROWSER: ${{ matrix.browser }}
# BROWSER: ${{ matrix.browser }}
steps:
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
@@ -35,24 +35,13 @@ jobs:
pip install pycodestyle coverage coveralls django_coverage_plugin pytest-cov
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
python manage.py check
python manage.py makemigrations --check --dry-run
- name: Run Tests
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: coverage run -m pytest -n 8
coverageLocations: |
${{github.workspace}}/.coverage:coverage.py
run: coverage run -m pytest -n 8
- uses: actions/upload-artifact@v2
if: failure()
with:

View File

@@ -36,6 +36,6 @@
"scripts": {
"gulp": "gulp",
"build": "node node_modules/gulp/bin/gulp build",
"heroku-cleanup": "rm -rf node_modules/ pipeline/ gulpfile.js"
"heroku-cleanup": "rm -rf node_modules/ pipeline/source_assets gulpfile.js"
}
}