Skip to content

Update pre-commit hooks #165

Update pre-commit hooks

Update pre-commit hooks #165

Workflow file for this run

name: Tests
on:
pull_request:
paths:
- 'src/**'
- 'docker/**'
- 'docker-compose.yaml'
- 'pyproject.toml'
- '.github/workflows/tests.yml'
permissions:
contents: write
jobs:
compare-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
# https://github.com/docker/compose/issues/10596
- run: docker compose --profile "python" --profile "php" up --detach --wait --remove-orphans || exit $(docker compose ps -q | xargs docker inspect -f '{{.State.ExitCode}}' | grep -v '^0' | wc -l)
- run: docker exec openml-python-rest-api coverage run -m pytest -v -m "php_api"
- run: docker exec openml-python-rest-api coverage xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: docker compose --profile "python" up --detach --wait --remove-orphans || exit $(docker compose ps -q | xargs docker inspect -f '{{.State.ExitCode}}' | grep -v '^0' | wc -l)
- run: docker exec openml-python-rest-api coverage run -m pytest -v -m "not php_api"
- run: docker exec openml-python-rest-api coverage xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}