|
|
|
@ -15,7 +15,7 @@ jobs:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-python@v4.5.0
|
|
|
|
|
with:
|
|
|
|
|
python-version: 3.9
|
|
|
|
|
python-version: "3.10"
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
|
uses: actions/cache@v3.2.4
|
|
|
|
|
id: cache
|
|
|
|
@ -35,7 +35,7 @@ jobs:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-python@v4.5.0
|
|
|
|
|
with:
|
|
|
|
|
python-version: 3.9
|
|
|
|
|
python-version: "3.10"
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
|
uses: actions/cache@v3.2.4
|
|
|
|
|
id: cache
|
|
|
|
@ -73,3 +73,18 @@ jobs:
|
|
|
|
|
CUDA_LAUNCH_BLOCKING: 1
|
|
|
|
|
run: |
|
|
|
|
|
pytest --durations=10 -v
|
|
|
|
|
type-check:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-python@v4.5.0
|
|
|
|
|
with:
|
|
|
|
|
python-version: "3.10"
|
|
|
|
|
cache: pip
|
|
|
|
|
cache-dependency-path: requirements-dev.txt
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
run: |
|
|
|
|
|
python -m pip install -r requirements-dev.txt . --upgrade
|
|
|
|
|
- name: Run mypy
|
|
|
|
|
run: |
|
|
|
|
|
make type-check
|
|
|
|
|