add typing-extensions for py < 3.12, use override #2270
Workflow file for this run
This file contains hidden or 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 | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-py: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| py: ["3.13", "3.10"] | |
| make_target: ["test-py", "test-py-old-deps"] | |
| include: | |
| - os: "macos-latest" | |
| make_target: "test-py" | |
| py: "3.13" | |
| - os: "windows-latest" | |
| make_target: "test-py" | |
| py: "3.13" | |
| - os: "ubuntu-latest" | |
| make_target: "test-py" | |
| py: "3.14" | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| - uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | |
| with: | |
| enable-cache: false | |
| - run: touch src/fava/static/app.js | |
| - run: make ${{ matrix.make_target }} | |
| test-js: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
| node: ["lts/*"] | |
| include: | |
| - os: "ubuntu-latest" | |
| node: "current" | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| package-manager-cache: false | |
| - run: cd frontend && npm ci | |
| - run: cd frontend && npm run build | |
| - run: cd frontend && npm test | |
| deno-js: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3 | |
| with: | |
| deno-version: "v2.6.x" | |
| - run: cd frontend && deno install | |
| - run: cd frontend && deno lint | |
| - run: cd frontend && deno run build | |
| lint-js: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: "3.13" | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: "lts/*" | |
| package-manager-cache: false | |
| - uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | |
| with: | |
| enable-cache: false | |
| - run: cd frontend && npm ci | |
| - run: uv run --no-dev --group pre-commit 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: "3.13" | |
| - uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | |
| with: | |
| enable-cache: false | |
| - run: touch src/fava/static/app.js | |
| - run: make mypy |