-
Notifications
You must be signed in to change notification settings - Fork 21
65 lines (54 loc) · 1.83 KB
/
conda-forge-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
59
60
61
62
63
64
65
name: Test ADAM with conda-forge dependencies
on:
push:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# Execute a "nightly" build at 2 AM UTC
- cron: '0 2 * * *'
jobs:
build-with-conda-forge-dependencies:
name: '[conda-forge:${{ matrix.os }}]'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: [Release]
os: [ubuntu-latest,macos-latest,windows-latest]
steps:
- uses: actions/checkout@v3
- name: Get current week
shell: bash -l {0}
id: week
run: echo "week=$(date +%Y-%U)" >> "${GITHUB_OUTPUT}"
- uses: mamba-org/setup-micromamba@v1
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
with:
environment-file: ci_env.yml
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }}
- uses: mamba-org/setup-micromamba@v1
if: contains(matrix.os, 'windows')
with:
environment-file: ci_env_win.yml
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }}
- name: Print packages and environment
shell: bash -l {0}
run: |
env
uname -r
micromamba list
- name: Install ADAM
shell: bash -l {0}
run: |
pip install --no-deps .
- name: Test with pytest [macOS and Linux]
shell: bash -l {0}
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
run: |
pytest
- name: Test with pytest [Windows]
shell: bash -l {0}
if: contains(matrix.os, 'windows')
run: |
# Skip additional dependencies not available on Windows
pytest --count=100 -v --ignore-glob=*Jax* --ignore-glob=*pytorch*