Skip to content

Fix auth requests (#12) #43

Fix auth requests (#12)

Fix auth requests (#12) #43

Workflow file for this run

name: CI
on:
push:
branches:
- main
- 'renovate/**'
pull_request:
jobs:
test_python:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: demo.settings
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- id: pip-cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-pip-v2-${{ hashFiles('**/runtime.txt') }}-${{ hashFiles('**/requirements.txt') }}
- if: steps.pip-cache.outputs.cache-hit != 'true'
run: python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
- run: source .venv/bin/activate && flake8 demo
- run: source .venv/bin/activate && black demo --check
- run: source .venv/bin/activate && python manage.py check
- run: source .venv/bin/activate && python manage.py render_patterns
test_node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- id: node-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/.nvmrc') }}-${{ hashFiles('**/package-lock.json') }}
- if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci --no-audit
- run: npm run lint:js
- run: npm run lint:format
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: storybook_compiled
path: demo/storybook_compiled
retention-days: 1
test_storyshots:
runs-on: ubuntu-latest
needs: [test_python, test_node]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- id: node-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/.nvmrc') }}-${{ hashFiles('**/package-lock.json') }}
- id: pip-cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-pip-v2-${{ hashFiles('**/runtime.txt') }}-${{ hashFiles('**/requirements.txt') }}
- uses: actions/download-artifact@v3
with:
name: storybook_compiled
path: demo/storybook_compiled
- run: source .venv/bin/activate && python manage.py runserver 0:8001 &
- run: npm run test
- uses: actions/upload-artifact@v3
with:
name: image_snapshots
path: demo/static_src/tests/__image_snapshots__
retention-days: 30