ReturnnTrainingJob torchtrain add tee option (#658) #143
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| python-version: | |
| - 3.10.12 | |
| tests_path: | |
| - tests/job_tests | |
| - tests/unit_tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: "rwth-i6/i6_core" | |
| path: "i6_core" | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: "rwth-i6/sisyphus" | |
| path: "sisyphus" | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: "rwth-i6/returnn" | |
| path: "returnn" | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| cache-dependency-path: '.github/workflows/tests.yml' | |
| - name: Setup Sisyphus environment | |
| run: | | |
| pip install --user --upgrade pip setuptools wheel | |
| cd sisyphus | |
| pip install . | |
| cd .. | |
| pip install pytest | |
| sudo apt update && sudo apt install -y libsndfile1 | |
| pip install -r i6_core/requirements.txt | |
| pip install -r returnn/requirements.txt | |
| - name: Run tests | |
| run: | | |
| set -e | |
| pytest i6_core/${{ matrix.tests_path }} |