Add workflow for tests #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test struct2tensor wheels | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build package | |
id: build-package | |
uses: ./.github/reusable-build | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Test dependencies | |
shell: bash | |
run: | | |
pip install pyarrow tensorflow tensorflow-metadata protobuf pytest | |
- name: Run Test | |
run: | | |
ls | |
pytest -vv | |
- name: Debugging with tmate | |
if: failure() | |
uses: mxschmitt/action-tmate@v3.19 | |