Skip to content

Commit

Permalink
fix: manually execute tests in arm container
Browse files Browse the repository at this point in the history
  • Loading branch information
wst24365888 committed Dec 13, 2022
1 parent 67fc2ce commit ad1b1bd
Showing 1 changed file with 13 additions and 34 deletions.
47 changes: 13 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,44 +58,23 @@ jobs:
with:
submodules: true

- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}

- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y python3 python3-pip
pip3 install poetry
poetry install --only test
apt-get install -y cmake make g++
run: |
uname -a
- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}

- name: Setup Python 3.10.4
uses: actions/setup-python@v3
with:
python-version: "3.10.4"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
with:
poetry-version: 1.2.2

- name: Install Dependencies
run: |
poetry install --only test
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: "3.16.x"

- name: Build Tests
run: |
cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_PYBIND11=ON -DPRINT_BENCHMARK=ON -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF
cmake --build . --config Release
- name: Test
run: |
./libstreamvbyte_tests
poetry run python -m pytest ./tests/test.py
cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_PYBIND11=ON -DPRINT_BENCHMARK=ON -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF
cmake --build . --config Release
./libstreamvbyte_tests
poetry run python -m pytest ./tests/test.py

0 comments on commit ad1b1bd

Please sign in to comment.