-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (51 loc) · 1.44 KB
/
CI_Tests.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
name: CI Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- name: Install this package
run: pip install -e '.[dev]'
- name: Run pytest
run: pytest
- name: Run the smoke tests
run: |
music_box -c src/acom_music_box/examples/configs/analytical/my_config.json -o output.csv
music_box -e Analytical -o output.csv
music_box -e Analytical -o output.csv -vv --color-output
waccmToMusicBox waccmDir="./sample_waccm_data" date="20240904" time="07:00" latitude=3.1 longitude=101.7
- name: Check for config.zip
if: runner.os != 'Windows'
run: |
if [ -f "./config.zip" ]; then
echo "config.zip created successfully"
else
echo "config.zip not found"
exit 1
fi
- name: Check for config.zip (Windows)
if: runner.os == 'Windows'
run: |
if (Test-Path -Path "./config.zip") {
Write-Output "config.zip created successfully"
} else {
Write-Output "config.zip not found"
exit 1
}
shell: pwsh