-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (49 loc) · 1.59 KB
/
publish_test.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
name: Publish to Anaconda.org (win test)
on:
release:
types:
- published
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'manual run'
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: False
matrix:
python-version: [3.9, '3.10']
os: [windows-latest]
defaults: # https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup miniconda # https://github.com/marketplace/actions/setup-miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge,ncb,apple
python-version: 3.12
auto-activate-base: false
activate-environment: anaconda-client-env
environment-file: build_env.yml
condarc-file: condarc.yml
- name: Build conda package
run: |
conda build conda/das-test --no-test -c conda-forge -c ncb -c nvidia -c apple -c local -c ncb --python ${{ matrix.python-version }} --no-anaconda-upload
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
- name: Install and test conda package
run: |
conda deactivate
conda create python=${{ matrix.python-version }} das=0.32.3 -c conda-forge -c ncb -c nvidia -c apple -c local -c ncb -n das_test -y
conda activate das_test
conda list
python -c "import das; print(das.__version__)"
das version