Build(deps): Bump postcss from 8.4.23 to 8.4.31 (#565) #499
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Django CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PYTHONDONTWRITEBYTECODE: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
cache: 'pipenv' | |
- name: Install Dependencies | |
run: | | |
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@v3 | |
with: | |
path: 'pipeline/built_assets' | |
key: ${{ hashFiles('package-lock.json') }}-${{ hashFiles('pipeline/source_assets') }} | |
- uses: bahmutov/npm-install@v1 | |
if: steps.static-cache.outputs.cache-hit != 'true' | |
- run: node node_modules/gulp/bin/gulp build | |
if: steps.static-cache.outputs.cache-hit != 'true' | |
- name: Basic Checks | |
run: | | |
pipenv run pycodestyle . --exclude=migrations,node_modules | |
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 --cov | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: failure-screenshots ${{ matrix.test-group }} | |
path: screenshots/ | |
retention-days: 5 | |
- name: Coveralls | |
run: pipenv run coveralls --service=github |