Tests #197
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: {} | |
| schedule: | |
| - cron: '0 23 * * SUN-THU' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| if: (github.event_name == 'schedule' && github.repository == 'SakanaAI/treequest') || (github.event_name != 'schedule') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install the project without extras | |
| run: uv sync | |
| - name: Output installed packages without extras | |
| run: | | |
| uv pip list | |
| uv pip check | |
| - name: Test AB-MCTS-A without extra dependency | |
| run: uv run pytest tests/test_ab_mcts_a.py -n auto | |
| - name: Install all the extras | |
| run: uv sync --all-extras | |
| - name: Output installed packages | |
| run: | | |
| uv pip list | |
| uv pip check | |
| - name: Tests | |
| run: uv run pytest tests -n auto |