Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build_test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test Python
run-name: Test Python PR${{ github.event.number }}

# Separate GitHub Actions workflow to run the Python tests only when we have
# Python source changes in the PR.

on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- '**/*.py'

jobs:
test-python:
name: Python tests
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
submodules: 'true'

- name: Update apt packages
run: sudo apt-get update

- name: Install Python
run: sudo apt-get install python3 python-is-python3

- name: Get Python modules
run: |
python -m pip install --upgrade pip
python -m pip install numpy Pillow mypy pylint pycodestyle

- name: Run Python tests
run: |
python ./Test/astc_test_python.py
4 changes: 2 additions & 2 deletions .github/workflows/post_weekly_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:

build-ubuntu-x64:
name: Ubuntu x64
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v6
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
prepare-release:
if: ${{ (startsWith(github.event.ref, 'refs/tags/')) && (github.repository_owner == 'Arm-software') }}
name: Prepare release
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [sign-binaries, build-ubuntu-x64]
steps:
- name: Git checkout
Expand Down
4 changes: 4 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[mypy]
exclude = pycodestyle
ignore_missing_imports = True
disable_error_code = annotation-unchecked
Loading
Loading