-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (50 loc) · 1.49 KB
/
full_test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Full Test
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1 # Fail fast if there are any linting errors
- name: Checkout branch with MIKE+ dependency
uses: actions/checkout@v3
with:
lfs: true
ref: cicd_dependencies
- name: Unzip MIKE+ dependency
run: |
7z x "2025_0.7z" -p${{ secrets.MIKE_2024_0_7Z }} # Use secrets.MIKE_2024_0_7Z regardless of version
- name: Install MIKE+ dependency
run: |
./install.ps1 2025
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
lfs: true
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install shapely
- name: Install mikepluspy
run: |
python -m pip install -e .[test]
- name: Test with pytest
run: |
pytest -v -m "not license_required and not slow"