# Run the ais-check unit test suite name: "hipFile ais-check tests" on: push: branches: [develop] paths: - 'projects/hipfile/tools/ais-check/**' - '.github/workflows/hipfile-ais-check.yml' pull_request: paths: - 'projects/hipfile/tools/ais-check/**' - '.github/workflows/hipfile-ais-check.yml' permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: hipfile-ais-check: runs-on: ubuntu-latest strategy: fail-fast: false matrix: # Floor matches pyproject's requires-python; "3.x" floats to the # latest stable release so new versions are covered without edits. python-version: ["3.10", "3.x"] steps: - name: Checkout repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: sparse-checkout: | projects/hipfile/tools/ais-check .github/workflows - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ matrix.python-version }} - name: Install Python packages run: | python -m pip install --upgrade pip python -m pip install pytest - name: Run ais-check tests run: | cd projects/hipfile/tools/ais-check/tests python -m pytest