Skip to content

Commit

Permalink
use venv for python
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Oct 25, 2024
1 parent 79a337c commit f81d3d8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,18 @@ jobs:
restore-keys: |
memleak-ccache
- name: Install Test Requirements
run: pip3 install -r tests/data/requirements.txt
run: |
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r tests/data/requirements.txt
- name: Configure
run: cmake -DXXX_ENABLE_MEMLEAK_CHECK=ON -S . -B build
- name: Build
run: cmake --build build --parallel
- name: Run tests
run: ctest --output-on-failure --test-dir build
run: |
. .venv/bin/activate
ctest --output-on-failure --test-dir build
- name: Save ccache
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
Expand Down Expand Up @@ -87,13 +92,18 @@ jobs:
restore-keys: |
${{ matrix.sanitizer }}-ccache
- name: Install Test Requirements
run: pip3 install -r tests/data/requirements.txt
run: |
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r tests/data/requirements.txt
- name: Configure
run: cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DXXX_BUILD_UNITTESTS=OFF -DXXX_BUILD_FUZZTESTS=ON -DXXX_ENABLE_${{ matrix.sanitizer }}=ON -S . -B build
- name: Build
run: cmake --build build --parallel
- name: Run tests
run: ctest --output-on-failure --test-dir build
run: |
. .venv/bin/activate
ctest --output-on-failure --test-dir build
- name: Save ccache
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
Expand Down Expand Up @@ -132,14 +142,18 @@ jobs:
restore-keys: |
${{ matrix.image }}-ccache
- name: Install Test Requirements
run: pip3 install -r tests/data/requirements.txt
run: |
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r tests/data/requirements.txt
- name: Configure
run: cmake ${{ matrix.additional-flags }} -S . -B build
- name: Build
run: cmake --build build --parallel
- name: Run Tests
id: test-step
run: ctest --output-on-failure --test-dir build
run: |
. .venv/bin/activate
ctest --output-on-failure --test-dir build
- name: Save ccache
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ doc
tests/data
Testing
.git
.venv
.vscode
.sentry-native

Expand Down

0 comments on commit f81d3d8

Please sign in to comment.