Thoughts on end2end training #18
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: Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| test: | |
| name: Tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Test | |
| run: | | |
| cd src | |
| pytest test_unit.py --doctest-modules --junitxml=../junit/test-results-${{ matrix.os }}.xml | |
| - name: Upload test results | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: pytest-results-${{ matrix.os }} | |
| path: junit/test-results-${{ matrix.os }}.xml | |
| - name: Test Report | |
| uses: dorny/test-reporter@v2 | |
| if: ${{ always() }} | |
| with: | |
| name: PyTorch Unit Tests (${{ matrix.os }}) | |
| path: junit/test-results-${{ matrix.os }}.xml | |
| reporter: jest-junit | |
| fail-on-error: "false" |