Skip to content

Commit

Permalink
CI: ignore other GH actions; Attempt to fix Windows build conda initi…
Browse files Browse the repository at this point in the history
…alization
  • Loading branch information
selimnairb committed Nov 17, 2023
1 parent 8e2381c commit 61dcf6d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/testmatrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- '*.md'
- '*.svg'
- '*.png'
- .github/workflows/testwindows.yml
branches: [ "master" ]
pull_request:
paths-ignore:
Expand All @@ -20,6 +21,7 @@ on:
- '*.md'
- '*.svg'
- '*.png'
- .github/workflows/testwindows.yml
branches: [ "master", "v2" ]

env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/testreporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- README.*
- '*.md'
- '*.svg'
- .github/workflows/testwindows.yml
branches: [ "master", "v2" ]
pull_request:
paths-ignore:
Expand All @@ -18,6 +19,7 @@ on:
- README.*
- '*.md'
- '*.svg'
- .github/workflows/testwindows.yml
branches: [ "master", "v2" ]

env:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/testwindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- '*.md'
- '*.svg'
- '*.png'
- .github/workflows/testmatrix.yml
- .github/workflows/testreporting.yml
branches: [ "master" ]
pull_request:
paths-ignore:
Expand All @@ -20,6 +22,8 @@ on:
- '*.md'
- '*.svg'
- '*.png'
- .github/workflows/testmatrix.yml
- .github/workflows/testreporting.yml
branches: [ "master", "v2" ]

env:
Expand Down Expand Up @@ -60,6 +64,8 @@ jobs:
run: >
set PATH=C:\Miniconda;C:\Miniconda\Library\bin;C:\Miniconda\Scripts;%PATH%
conda init
conda activate test-environment
cmake -Bbuild -S. -GNinja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
Expand All @@ -75,13 +81,17 @@ jobs:
- name: Build
shell: cmd
run: |
set PATH=C:\Miniconda;C:\Miniconda\Library\bin;C:\Miniconda\Scripts;%PATH%
conda init
conda activate test-environment
cmake --build build
python -m pip wheel -w .\wheel build\api\swig\python
- name: Install
shell: cmd
run: |
set PATH=C:\Miniconda;C:\Miniconda\Library\bin;C:\Miniconda\Scripts;%PATH%
conda init
conda activate test-environment
cmake --install build
python -m pip install .\wheel\bagPy-*.whl
Expand All @@ -90,6 +100,8 @@ jobs:
shell: cmd
# Execute C++ and Python tests
run: |
set PATH=C:\Miniconda;C:\Miniconda\Library\bin;C:\Miniconda\Scripts;%PATH%
conda init
conda activate test-environment
set BAG_SAMPLES_PATH=%github.workspace%\examples\sample-data
.\build\tests\bag_tests
Expand Down

0 comments on commit 61dcf6d

Please sign in to comment.