open-r1/.github/workflows/tests.yml
Almaz Zinollayev 517adddae3
[Testing Github workflow] Updating workflows and makefile (#214)
* [Testing Github workflow] Updating workflows and makefile

* [Testing Github workflow] - Refactoring workflow, fixing tests erorr, easier debugging

* [Testing Github workflow] Converting docstring into raw string

* [Testing Github workflow] - Fixing test_zero_max_penalty_returns_zero() test

* [Testing Github workflow] Removing redundant test
2025-02-10 18:28:35 +01:00

34 lines
667 B
YAML

name: Tests
on:
push:
branches:
- main
- v*-release
pull_request:
branches:
- main
jobs:
tests:
name: Run tests and quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python environment
uses: actions/setup-python@v5
with:
python-version: 3.10.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[quality,tests]"
- name: Code quality
run: |
make quality
- name: Run tests
run: |
make test