Skip to content

Commit 9f043fb

Browse files
committed
Add workflow and test
1 parent 2e985ac commit 9f043fb

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Workflow
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
windows:
9+
name: Windows 2019
10+
runs-on: windows-2019
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
- run: pip install soundfile
17+
- run: python test.py
18+
- run: ./test.py
19+
20+
windows_bash:
21+
name: Windows 2019 Bash
22+
runs-on: windows-2019
23+
defaults:
24+
run:
25+
shell: bash -l {0} # Source profile for each step
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-python@v2
29+
with:
30+
python-version: '3.x'
31+
architecture: 'x64'
32+
- run: pip install soundfile
33+
- run: python test.py
34+
- run: ./test.py
35+
36+
windows_bash_msys2:
37+
name: Windows 2019 Bash MSYS2
38+
runs-on: windows-2019
39+
defaults:
40+
run:
41+
shell: bash -l {0} # Source profile for each step
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: msys2/setup-msys2@v2
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.x'
48+
architecture: 'x64'
49+
- run: echo "c:/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH
50+
shell: powershell
51+
- run: ls -l c:/msys64/mingw64/bin/
52+
- run: pip install soundfile
53+
- run: python test.py
54+
- run: ./test.py

test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env python3
2+
3+
import soundfile

0 commit comments

Comments
 (0)