Skip to content

Commit

Permalink
Speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jan 28, 2025
1 parent c880458 commit a610fc9
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
# cancel-in-progress: true

jobs:
main:
Expand Down Expand Up @@ -65,6 +65,11 @@ jobs:
# toxenv: py
# tox_extra_args: "-n 4"
# test_mypyc: true
- name: Test suite with py313-ubuntu, mypyc-compiled
python: '3.13'
os: windows-latest
toxenv: py
tox_extra_args: "-n 4 mypyc/test/test_run.py"
- name: Test suite with py313-ubuntu, mypyc-compiled
python: '3.13'
os: windows-latest
Expand All @@ -80,12 +85,12 @@ jobs:
# allow_failure: true
# test_mypyc: true

- name: mypyc runtime tests with py39-macos
python: '3.9.21'
# TODO: macos-13 is the last one to support Python 3.9, change it to macos-latest when updating the Python version
os: macos-13
toxenv: py
tox_extra_args: "-n 3 mypyc/test/test_run.py mypyc/test/test_external.py"
# - name: mypyc runtime tests with py39-macos
# python: '3.9.21'
# # TODO: macos-13 is the last one to support Python 3.9, change it to macos-latest when updating the Python version
# os: macos-13
# toxenv: py
# tox_extra_args: "-n 3 mypyc/test/test_run.py mypyc/test/test_external.py"
# This is broken. See
# - https://github.com/python/mypy/issues/17819
# - https://github.com/python/mypy/pull/17822
Expand All @@ -96,22 +101,22 @@ jobs:
# tox_extra_args: "-n 4 mypyc/test/test_run.py mypyc/test/test_external.py"
# debug_build: true

- name: Type check our own code (py39-ubuntu)
python: '3.9'
os: ubuntu-latest
toxenv: type
- name: Type check our own code (py39-windows-64)
python: '3.9'
os: windows-latest
toxenv: type
# - name: Type check our own code (py39-ubuntu)
# python: '3.9'
# os: ubuntu-latest
# toxenv: type
# - name: Type check our own code (py39-windows-64)
# python: '3.9'
# os: windows-latest
# toxenv: type

# We also run these checks with pre-commit in CI,
# but it's useful to run them with tox too,
# to ensure the tox env works as expected
- name: Formatting and code style with Black + ruff
python: '3.10'
os: ubuntu-latest
toxenv: lint
# - name: Formatting and code style with Black + ruff
# python: '3.10'
# os: ubuntu-latest
# toxenv: lint

name: ${{ matrix.name }}
timeout-minutes: 60
Expand Down

0 comments on commit a610fc9

Please sign in to comment.