chore(deps): update dependency black to v23 #319
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- "renovate/**" | |
pull_request: | |
jobs: | |
test_js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- id: nvm | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- run: npm install --no-optional --no-audit --no-fund --progress=false | |
- run: npm run lint | |
- run: npm run build | |
test_python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-${{ hashFiles('**/requirements.txt', '**/setup.py') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- run: pip install -r requirements.txt coveralls==3.0.1 | |
- run: make test-coverage | |
- run: coveralls || true | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: make lint | |
- run: make sdist | |
- run: python manage.py makemigrations --check | |
- run: python manage.py migrate --no-input | |
- run: python manage.py flush --no-input | |
- run: python manage.py loaddata fixtures/demo_data.json |