Skip to content

Commit

Permalink
github: Run pytest tests in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Dec 4, 2024
1 parent 25ad5b4 commit 3000d54
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3000d54

Please sign in to comment.