Skip to content

Commit

Permalink
Add unit tests to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
H0R5E committed Nov 15, 2024
1 parent 9eff6b2 commit fab4edf
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
DISPLAY: ":99"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: abatilo/actions-poetry@v2
- name: Install build system (Linux)
- name: Configure runner (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install clang ninja-build
- name: Install build system (Windows)
- name: Configure runner (Windows)
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Install Conan
Expand All @@ -38,3 +40,14 @@ jobs:
run: cmake --preset conan-release
- name: Build
run: cmake --build --preset conan-release
- name: Xvfb (Linux)
if: runner.os == 'Linux'
run: |
Xvfb $DISPLAY -screen 0 1920x1080x24 &
sleep 5
fluxbox > /dev/null 2>&1 &
sleep 5
- name: Test
run: ./bin/tests
env:
ESPEAK_DATA_PATH: ./vendor/src/espeak-ng/espeak-ng-data

0 comments on commit fab4edf

Please sign in to comment.