Skip to content

Add basic cli tests using Bats #66

Add basic cli tests using Bats

Add basic cli tests using Bats #66

Workflow file for this run

name: Tests (tox)
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
test:
name: test with ${{ matrix.py }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
py:
- "3.12"
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: (throwaway) try running Bats executable
if: "${{ matrix.py == '3.12' }}"
run: git submodule update && ./tests/cli/bats/bin/bats tests/cli/test.bats
- name: Install tox
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
run: tox -vv --notest
- name: Run test suite
run: tox --skip-pkg-install