-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (33 loc) · 1.11 KB
/
run_tests.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
40
41
name: Run tests
on:
pull_request:
workflow_call:
jobs:
run_tests:
runs-on: ubuntu-latest
if: ${{ ! contains(github.event.head_commit.message, '[skip fast tests]') }}
env:
PYTENSOR_FLAGS: "blas__ldflags=-L/usr/lib/x86_64-linux-gnu -lblas -llapack"
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install BLAS and LAPACK
run: sudo apt-get update && sudo apt-get install -y libblas-dev liblapack-dev
- name: Setup environment
uses: ./.github/setup-env
with:
python-version: ${{ matrix.python-version }}
- name: Run tests and collect coverage
run: uv run pytest -n=auto --cov=. --cov-report=xml --cov-report=term-missing --exitfirst --capture=no -v tests/
env:
PYTENSOR_FLAGS: ${{ env.PYTENSOR_FLAGS }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}