Discover action types and pass Sensor through action call #117
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: Tox | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'scos_actions/**' | |
- '.github/workflows/**' | |
- 'pyproject.toml' | |
- 'tox.ini' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'scos_actions/**' | |
- '.github/workflows/**' | |
- 'pyproject.toml' | |
- 'tox.ini' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
run-all-tests: | |
name: Py${{ matrix.py }} / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
py: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
steps: | |
- name: Set up Python ${{ matrix.py }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Checkout scos-actions | |
uses: actions/checkout@v3 | |
- name: Install tox-gh | |
run: python -m pip install tox-gh | |
- name: Set up test suite | |
run: tox r -vv --notest | |
- name: Run test suite | |
run: tox r --skip-pkg-install | |
env: | |
PYTEST_ADDOPTS: "-vv --durations=0" |