-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (52 loc) · 1.37 KB
/
windows-build.yaml
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
name: Windows-build
on:
push:
branches:
- 'main'
- 'develop'
- 'releases/**'
tags:
- '*'
pull_request:
branches:
- 'main'
- 'develop'
- 'releases/**'
jobs:
build:
name: Testing Windows build
runs-on: "windows-latest"
defaults:
run:
shell: cmd /C call {0}
steps:
- uses: actions/checkout@v3
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: windows.yml
activate-environment: ml
auto-activate-base: false
- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- uses: actions/cache@v2
id: cache
env:
CACHE_NUMBER: 0
with:
path: ${{ env.CONDA }}/envs
key: windows-build-${{ hashFiles('windows.yml') }}-${{ env.DATE }}
- name: Update environment
run: conda env update -n ml -f windows.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Test environment
run: >-
conda info && conda list && printenv
# - name: Test IO modules
# run: python -m pytest -vvv tests/test_io.py
#
# - name: Test embeddings modules
# run: python -m pytest -vvv tests/test_embeddings.py
#
# - name: Test AO modules
# run: python -m pytest -vvv tests/test_ao.py