Initial commit with automatic conversion script from HELM eval to uni… #5
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: Run tests and lint | |
| on: | |
| pull_request: | |
| branches: | |
| - "**" # runs for all branches with PRs | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Sync dependencies | |
| run: uv sync --extra dev | |
| - name: Run Ruff linter | |
| run: uv run ruff check . | |
| - name: Run tests with pytest | |
| run: uv run pytest -v |