[data] full tournament with round_limits #96
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: Run Tests on src Changes | |
# Trigger the workflow on push, pull request, or manually via workflow_dispatch | |
on: | |
push: | |
paths: | |
- 'src/**' # Trigger on changes in the src directory | |
- 'tests/**' # Trigger on changes in the tests directory | |
- '.github/workflows/test.yml' # Trigger on changes to the workflow file | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
- '.github/workflows/test.yml' | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# Set environment variables for the job | |
env: | |
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | |
steps: | |
# ---------------------------------------------- | |
# Checkout Repository | |
# ---------------------------------------------- | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# ---------------------------------------------- | |
# Set Up Python | |
# ---------------------------------------------- | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' # Specify your Python version | |
# ---------------------------------------------- | |
# Install Poetry | |
# ---------------------------------------------- | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: '1.8.4' # Specify the desired Poetry version | |
# ---------------------------------------------- | |
# Install Dependencies | |
# ---------------------------------------------- | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
# ---------------------------------------------- | |
# Run Tests | |
# ---------------------------------------------- | |
- name: Run Pytest | |
run: poetry run pytest |