forked from CadQuery/cadquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (37 loc) · 1.49 KB
/
appveyor.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
shallow_clone: true
platform:
- x64
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
MINICONDA_DIRNAME: C:\Miniforge
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2204
OS: Linux
- APPVEYOR_BUILD_WORKER_IMAGE: macOS
OS: MacOSX
ANACONDA_TOKEN:
secure: $(anaconda_token)
init:
- cmd: curl -fsSLo Miniforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe
- cmd: Miniforge.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%MINICONDA_DIRNAME%
- cmd: set "PATH=%MINICONDA_DIRNAME%;%MINICONDA_DIRNAME%\\Scripts;%PATH%"
- cmd: activate
- sh: curl -sL https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$OS-x86_64.sh > miniconda.sh
- sh: bash miniconda.sh -b -p $HOME/miniconda;
- sh: export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH";
- sh: source $HOME/miniconda/bin/activate
install:
- mamba env create -f environment.yml
- conda activate cadquery
- conda list
build: false
test_script:
- black . --diff --check
- mypy cadquery
- pytest -v --cov
on_success:
- codecov
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# - sh: export APPVEYOR_SSH_BLOCK=true
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -