From 452bb91437c909bbc784f2eb93af1706ed23f381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martti=20Rannanj=C3=A4rvi?= Date: Wed, 4 Dec 2024 09:58:44 +0200 Subject: [PATCH] github: Run pytest tests in github workflow --- .github/workflows/compilation.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index a392a1403..a2215f041 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -55,6 +55,35 @@ jobs: cd build-test ctest --verbose --output-on-failure + - name: Restore omf2097-assets.zip + id: cache-assets + uses: actions/cache/restore@v4 + with: + path: omf2097-assets.zip + key: omf2097-assets.zip + + - name: Download omf 2097 assets + if: steps.cache-assets.outputs.cache-hit != 'true' + run: wget -q "${{ env.OPENOMF_ASSETS_URL }}" + + - name: Cache omf2097-assets.zip + if: steps.cache-assets.outputs.cache-hit != 'true' + uses: actions/cache/save@v4 + with: + path: omf2097-assets.zip + key: omf2097-assets.zip + + - name: Extract omf 2097 assets + run: unzip -j omf2097-assets.zip -d build-test/resources + + - name: Install pytest requirements + run: | + pipx install poetry + poetry install + + - name: Run pytest tests + run: ./run_pytest.sh build-test ./Debug/openomf + # Build windows release artifacts with MSVC # ----------------------------------------------------------------------------------------------- build_msvc: