-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (48 loc) · 1.24 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
name: Tests
on:
workflow_dispatch:
push:
pull_request:
defaults:
run:
shell: bash -l {0}
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
env: [base]
include:
- os: macos-latest
python-version: '3.11'
env: base
- os: windows-latest
python-version: '3.11'
env: base
- os: ubuntu-latest
python-version: '3.11'
env: torch
- os: ubuntu-latest
python-version: '3.11'
env: jax
- os: ubuntu-latest
python-version: '3.11'
env: tensorflow
steps:
- uses: actions/checkout@v4
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/requirements/py-${{ matrix.env }}.yml
environment-name: test-env
create-args: >-
python=${{ matrix.python-version }}
cache-environment: true
- name: Test with pytest
run: pytest --cov=autoray tests/ --cov-report=xml tests
- name: Report to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}