isle-portable/.github/workflows/unittest.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2024-01-11 04:46:37 -05:00
name: Test
on: [push, pull_request]
jobs:
2024-02-10 20:40:13 -05:00
fetch-deps:
name: Download original binaries
uses: ./.github/workflows/legobin.yml
pytest-win:
2024-01-11 04:46:37 -05:00
name: 'Python Windows'
runs-on: windows-latest
2024-02-10 20:40:13 -05:00
needs: fetch-deps
steps:
- uses: actions/checkout@v4
2024-02-04 13:37:37 -05:00
- name: Restore cached original binaries
id: cache-original-binaries
uses: actions/cache/restore@v3
with:
enableCrossOsArchive: true
path: legobin
key: legobin
- name: Install python libraries
shell: bash
run: |
pip install pytest -r tools/requirements.txt
- name: Run python unit tests (Windows)
shell: bash
run: |
2024-02-04 13:37:37 -05:00
pytest tools/isledecomp --lego1=legobin/LEGO1.DLL
pytest-ubuntu:
2024-01-11 04:46:37 -05:00
name: 'Python Linux'
runs-on: ubuntu-latest
2024-02-10 20:40:13 -05:00
needs: fetch-deps
steps:
- uses: actions/checkout@v4
2024-02-04 13:37:37 -05:00
- name: Restore cached original binaries
id: cache-original-binaries
uses: actions/cache/restore@v3
with:
enableCrossOsArchive: true
path: legobin
key: legobin
- name: Install python libraries
shell: bash
run: |
pip install pytest -r tools/requirements.txt
- name: Run python unit tests (Ubuntu)
shell: bash
run: |
2024-02-04 13:37:37 -05:00
pytest tools/isledecomp --lego1=legobin/LEGO1.DLL