-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (75 loc) · 1.83 KB
/
win.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Windows Build and Test
on:
push:
branches:
- master
- Fix-build
- Fix-ci/cd-pipeline
- Fix-unittest
pull_request:
branches:
- master
jobs:
lint:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Create Environment
run: conda env create -f environment.yml
- name: Code Lint
run: |
conda activate vm
ruff version
ruff format --check .
ruff check --output-format=github .
- name: Archive Lint Logs
uses: actions/upload-artifact@v3
if: always()
with:
name: lint-logs
path: |
.ruff.log
build:
runs-on: windows-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Create Environment
run: conda env create -f environment.yml
- name: Build
run: |
conda activate vm
python install.py install
vonMises -m test\test-data\MATRIX.mat -k A > vonMises.log 2>&1
- name: Archive Build Logs
uses: actions/upload-artifact@v3
if: always()
with:
name: build-logs
path: |
vonMises.log
unittest:
runs-on: windows-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Create Environment
run: conda env create -f environment.yml
- name: Unittest
run: |
conda activate vm
python install.py install
pytest -s . > test.log 2>&1
- name: Archive Test Logs
uses: actions/upload-artifact@v3
if: always()
with:
name: test-logs
path: |
test.log