Skip to content

Merge pull request #529 from in-toto/dependabot/pip/python/protobuf-5… #89

Merge pull request #529 from in-toto/dependabot/pip/python/protobuf-5…

Merge pull request #529 from in-toto/dependabot/pip/python/protobuf-5… #89

Workflow file for this run

name: Python tests and linting
on:
push:
branches:
- main
paths:
- 'python/**'
pull_request:
paths:
- 'python/**'
workflow_dispatch:
permissions: {}
jobs:
test:
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python }}
- name: test
run: make -C python test INSTALL_EXTRA=test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: lint
run: make -C python lint INSTALL_EXTRA=lint