forked from open-atmos/PySDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
47 lines (38 loc) · 1.33 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
47
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"
Set-Content -Path "test-time-requirements.txt" -Value (get-content -Path "test-time-requirements.txt" | Select-String -Pattern 'PyPartMC' -NotMatch)
}
elseif ($env:platform -Match "x64")
{
$env:PYTHON="C:\Python38-x64\python"
}
- ps: |
iex "$env:PYTHON -m pip install pytest pip==21.3.1"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
- ps: |
# Add-Content requirements.txt "`npywin32>=300"
iex "$env:PYTHON -m pip install -r test-time-requirements.txt"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
- ps: |
iex "$env:PYTHON -m pip install -e ."
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) }
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))