Skip to content

[patch-axel-25] CI: add mypy for type checking of python scripts #3962

[patch-axel-25] CI: add mypy for type checking of python scripts

[patch-axel-25] CI: add mypy for type checking of python scripts #3962

Workflow file for this run

# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
# Actions to run on Push and Pull Request
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'pull_request' && github.event.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# check:
# name: License Check
# runs-on: ubuntu-latest
# steps:
# - uses: seL4/ci-actions/license-check@master
#
# links:
# name: Links
# runs-on: ubuntu-latest
# steps:
# - uses: seL4/ci-actions/link-check@master
mypy:
name: MyPy
runs-on: ubuntu-latest
container: trustworthysystems/sel4:latest
steps:
- uses: actions/checkout@v4
- run: pip3 install mypy
- run: mypy --disable-error-code=import-untyped tools