pr-validation #130
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
# This is a basic workflow to help you get started with Actions | |
name: pr-validation | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
# Every monday at 3h30 UTC | |
- cron: '30 3 * * 1' | |
env: | |
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: True | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
run_tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install -e ."[all_extra]" | |
- name: Test with pytest | |
run: | | |
pytest tests/strategies/ | |
pytest tests/benchmarks/ | |
# TODO: for now running only some tests. All tests should be run |