use Sequence instead of list for better tracking of mutability #1534
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: Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-py: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
py: ["3.13", "3.9"] | |
toxenv: ["py", "old_deps"] | |
include: | |
- os: "macos-latest" | |
toxenv: "py" | |
py: "3.13" | |
- os: "windows-latest" | |
toxenv: "py" | |
py: "3.13" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.py }} | |
cache: "pip" | |
cache-dependency-path: "constraints*.txt" | |
- run: python -m pip install -c constraints.txt tox tox-uv | |
- run: touch src/fava/static/app.js | |
- run: tox -e ${{ matrix.toxenv }} | |
test-js: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- run: cd frontend && npm ci | |
- run: cd frontend && npm run build | |
- run: cd frontend && npm test | |
lint-js: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: "pip" | |
cache-dependency-path: "constraints*.txt" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- run: python -m pip install -c constraints.txt pre-commit | |
- run: cd frontend && npm ci | |
- run: pre-commit run -a eslint | |
- run: cd frontend; npx tsc | |
- run: cd frontend; npx svelte-check | |
lint-python: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: "pip" | |
cache-dependency-path: "constraints*.txt" | |
- run: python -m pip install -c constraints.txt tox tox-uv | |
- run: tox -e lint | |
build-pyinstaller: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: "pip" | |
cache-dependency-path: "constraints*.txt" | |
- run: python -m pip install -c constraints.txt tox tox-uv | |
- run: tox -e pyinstaller |