-
Notifications
You must be signed in to change notification settings - Fork 17
/
.appveyor.yml
37 lines (33 loc) · 935 Bytes
/
.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
branches:
only:
- main
environment:
matrix:
- platform: x86
- platform: x64
build: false
skip_tags: true
install:
- echo Installed Pythons
- dir c:\Python*
- ps: |
if ($env:platform -Match "x86")
{
$env:PYTHON="C:\Python38\python"
$env:PATH += ';C:\msys64\mingw32\bin'
}
elseif ($env:platform -Match "x64")
{
$env:PYTHON="C:\Python38-x64\python"
$env:PATH += ';C:\msys64\mingw64\bin'
}
- ps: |
iex "$env:PYTHON -m pip install pip==21.3.1"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
- ps: |
iex "$env:PYTHON -m pip install --prefer-binary -e .[tests]"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
test_script:
- ps: |
iex "$env:PYTHON -m pytest -We -p no:unraisableexception tests/unit_tests"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }