-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.5 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Tests
on:
workflow_dispatch:
pull_request:
branches:
- master
- "**-beta"
jobs:
pycmtensor-test:
name: (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: false
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
- name: Display Conda packages
run: |
conda info
conda list
- name: Xcode check (macos)
if: matrix.os == 'macos-latest'
run: |
clang -- version
xcrun --show-sdk-path
- name: Test pycmtensor import
run: |
python -c "import pycmtensor as cmt; print(cmt.__version__)"
cat ~/.aesararc
- name: Show Aesara config
run: |
python -c "import aesara; print(aesara.config.blas__ldflags)"
python -c "import aesara; print(aesara.config.gcc__cxxflags)"
- name: Main test
run: pytest
- name: Upload coverage to codecov.io
if: (matrix.os == 'ubuntu-latest') && (matrix.python-version == '3.11')
uses: codecov/codecov-action@v3
with:
files: coverage.xml