-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (36 loc) · 1.03 KB
/
pr_validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- 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