chore(deps): update dependency black to v24 #493
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@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm install --no-optional --no-audit --no-fund --progress=false | |
- run: npm run lint | |
test_python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- run: pip install -e . && pip install -r requirements.txt && pip install 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 benchmark | |
- run: cd website; python build_rules.py | |
test_python_compat: | |
needs: test_python | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- python: "3.6" | |
- python: "3.7" | |
- python: "3.8" | |
- python: "3.9" | |
- python: "3.10" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
- run: pip install -e . && pip install $(cat requirements.txt | grep pytest) | |
- run: make test |