Skip to content

Commit

Permalink
test_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hokiedsp committed Jul 19, 2024
1 parent b5e6a2c commit 0aa5126
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel
pip install --upgrade scikit-build-core setuptools
pip install --upgrade -r tests/requirements.txt
- name: Select GCC
Expand All @@ -172,6 +172,9 @@ jobs:
echo "CC=clang-${{ matrix.clang }}" >> $GITHUB_ENV
echo "CXX=clang++-${{ matrix.clang }}" >> $GITHUB_ENV
- name: Setup Ninja meta builder
uses: seanmiddleditch/gha-setup-ninja@master

- name: Setup pytest annotations
run: |
pip install pytest-github-actions-annotate-failures
Expand All @@ -188,11 +191,12 @@ jobs:
CMAKE_ARCH="${{ (runner.os == 'Windows' && matrix.arch == 'x86') && '-A Win32' || '' }}"
CMAKE_BUILD_TYPE="${{ matrix.release && 'Release' || 'Debug' }}"
CCACHE_BASEDIR="$GITHUB_WORKSPACE"
cmake -S . -B build $CMAKE_ARCH -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DPython_EXECUTABLE="$(which python)" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
pip install -ve. --config-settings=cmake.args=-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE;-DCMAKE_C_COMPILER_LAUNCHER=ccache;-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
# cmake -S . -B build $CMAKE_ARCH -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DPython_EXECUTABLE="$(which python)" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache

- name: Compile
run: |
cmake --build build -j 2
# - name: Compile
# run: |
# cmake --build build -j 2

- name: Select Praat tests to run
if: matrix.run-praat-tests
Expand All @@ -202,7 +206,8 @@ jobs:
- name: Run tests
run: |
cmake --build build --target tests
pytest -vv
# cmake --build build --target tests

- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && inputs.tmate && failure() }}
Expand Down

0 comments on commit 0aa5126

Please sign in to comment.