-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.05 KB
/
Copy pathtest_package.yml
File metadata and controls
46 lines (41 loc) · 1.05 KB
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
name: Test diffopt
on:
workflow_dispatch: null
schedule:
# Runs "every Monday at noon UTC"
- cron: '0 12 * * 1'
push:
branches:
- main
pull_request: null
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test${{ matrix.python-version}}
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
- name: Install dependencies
shell: bash -l {0}
run: |
conda install -yq jax
conda install -yq pip pytest pytest-cov flake8
- name: Install package
shell: bash -l {0}
run: |
pip install -e .
- name: Run tests
shell: bash -l {0}
run: |
export PYTHONWARNINGS=error
pytest -v