-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.13 KB
/
build.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
name: Test Windows
on:
push
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.8,3.12]
steps:
- name: Create packages directory
run: mkdir packages
- uses: actions/checkout@v2
- name: Get nuget packages
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- name: Install nuget packages
run: |
nuget install DHI.DFS -Version 20.0.0 -OutputDirectory packages -Source "https://api.nuget.org/v3/index.json"
nuget install DHI.Projections -Version 20.0.0 -OutputDirectory packages -Source "https://api.nuget.org/v3/index.json"
- name: Install packages into directory
shell: cmd
run: .\BuildNativeBin.bat
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install mikecore-python
run: |
pip install .
- name: Test with pytest
run: |
pytest