Skip to content

Matrix tests for interfaces #26

Matrix tests for interfaces

Matrix tests for interfaces #26

Workflow file for this run

name: Matrix tests for interfaces
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
set-matrix:
runs-on: ubuntu-latest
outputs:
matrix_values: ${{ steps.set-matrix.outputs.matrix_values }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set matrix values
id: set-matrix
run: |
interfaces=$(find interfaces -mindepth 1 -maxdepth 1 -type d -not -name "__template__" -printf '%f\n' | jq --raw-input . | jq -c --slurp .)
echo "matrix_values=${interfaces}" >> $GITHUB_OUTPUT
main:
name: ${{ matrix.interface }}
needs: set-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
interface: ${{ fromJSON(needs.set-matrix.outputs.matrix_values) }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox
- name: PWD
run: pwd
- name: LS
run: ls
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_WITH_TEAM }}
run: tox -e run-interface-test-matrix -- --include ${{ matrix.interface }}