Port wandb_dir_in_experiment_dir option to public code
#99
Workflow file for this run
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: | |
| cpu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set environment variables | |
| run: | | |
| echo "CURRENT_WEEK=$(date +'%Y-%U')" >> $GITHUB_ENV | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.pythonLocation }} | |
| key: v1-${{ env.CURRENT_WEEK }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('constraints.txt') }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install uv | |
| uv pip install --system -c constraints.txt -e .[dev] | |
| - name: Run pytest with code coverage | |
| run: | | |
| make test_cov | |
| cpu-very-fast: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set environment variables | |
| run: | | |
| echo "CURRENT_WEEK=$(date +'%Y-%U')" >> $GITHUB_ENV | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.pythonLocation }} | |
| key: v1-${{ env.CURRENT_WEEK }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('constraints.txt') }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install uv | |
| uv pip install --system -c constraints.txt -e .[dev] | |
| - name: Run pytest | |
| run: | | |
| make test_very_fast |