Restore compatibility with python<3.11 by only importing typing.Self
under if TPYE_CHECKING
#1397
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: CI | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image_type: [pytorch] | |
env: | |
DOCKER_BUILDKIT: 1 | |
IMAGE_TYPE: ${{ matrix.image_type }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: df -hT | |
- run: rm -rf /opt/hostedtoolcache | |
- run: df -hT | |
- run: ./scripts/cibuild | |
- run: df -hT | |
- run: docker system prune -f | |
- run: df -hT | |
- run: ./scripts/test "style_tests" | |
- run: ./scripts/test "unit_tests" | |
- run: df -hT | |
- run: ./scripts/test "integration_tests" | |
- run: ./scripts/test "coverage" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |