Bump ruff from 0.0.286 to 0.1.0 #912
Workflow file for this run
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: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
tox: | |
name: "tox -e ${{ matrix.tox-env }}" | |
strategy: | |
matrix: | |
tox-env: ["test", "lint"] | |
runs-on: ubuntu-20.04 | |
env: | |
TOXENV: "${{ matrix.tox-env }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.9" | |
- name: pip cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: "${{ runner.os }}-pip-${{ matrix.tox-env }}-${{ hashFiles('tox.ini') }}" | |
restore-keys: | | |
${{ runner.os }}-pip-${{ matrix.tox-env }}- | |
${{ runner.os }}-pip- | |
- run: "python -m pip install tox" | |
# Temporary hack: create files normally created by Webpack that are | |
# expected to exist by the manifest.json view test. | |
- run: | | |
mkdir yarrharr/static | |
touch yarrharr/static/{icon,logotype,lettertype}-xyz.{ico,png,svg} | |
touch yarrharr/static/{normalize,main,fonts}-xyz.css | |
touch yarrharr/static/{runtime,vendor,main}-xyz.js | |
- run: "python -m tox" | |
webpack: | |
name: "tox -e static" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: apt install | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-suggests --no-install-recommends inkscape icoutils scour optipng node-less node-source-map | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.9" | |
- name: pip cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: "${{ runner.os }}-pip-static-${{ hashFiles('tox.ini') }}" | |
restore-keys: | | |
${{ runner.os }}-pip-static- | |
${{ runner.os }}-pip- | |
- run: "python -m pip install tox" | |
- run: "python -m tox -e static --notest" | |
- run: "tox -e static" |