-
Notifications
You must be signed in to change notification settings - Fork 58
75 lines (55 loc) · 1.64 KB
/
test-windows.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: tests-windows
on:
push:
pull_request: null
jobs:
tests:
name: tests
strategy:
fail-fast: false
matrix:
os: [windows-latest]
pyver: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.pyver }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver }}
- name: Make nmake available
uses: ilammy/msvc-dev-cmd@v1
- name: install zlib
run: |
mkdir zlib-install
cd zlib-install
curl.exe --output zlib-1.3.1.zip https://zlib.net/zlib131.zip
unzip zlib-1.3.1.zip
cd zlib-1.3.1
cmake . -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target install
cd ..
cd ..
- name: install cfitsio
run: |
mkdir cfitsio-build
cd cfitsio-build
curl.exe --output cfitsio.zip --url https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfit-4.4.1.zip
unzip cfitsio.zip
cd cfitsio-4.4.1
mkdir build
cd build
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -D CMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -D CMAKE_BUILD_TYPE=Release -D TESTS=On -D UTILS=On ..
nmake
nmake install
cd ..
cd ..
cd ..
- name: install numpy
run: pip install numpy
- name: Install code
run: pip install --no-deps -e .
- name: test
run: |
pip install pytest
pytest -vv fitsio