Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ on:
pull_request:
branches: [main]

# Keep every non-PR run; only superseded PR validation is cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -21,6 +27,9 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
cache: pip
cache-dependency-path: |
pyproject.toml
python-version: ${{ matrix.python-version }}

- name: Install dependencies
Expand Down Expand Up @@ -60,6 +69,7 @@ jobs:

typescript:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand All @@ -69,6 +79,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: |
ts/package-lock.json
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ts
Expand All @@ -82,6 +95,12 @@ jobs:
path: ts/*.tgz
- uses: actions/setup-python@v5
with:
cache: pip
# Parity installs a smaller Python extra than the main test matrix.
# Its TypeScript lock keeps those download caches distinct.
cache-dependency-path: |
pyproject.toml
Comment thread
Coding-Dev-Tools marked this conversation as resolved.
ts/package-lock.json
python-version: "3.12"
- run: python -m pip install -e ".[test]"
- run: python -m pytest tests/test_parity.py tests/test_question_ids.py -q
Loading