Skip to content

CI action fails with python >=3.12 #177

@tdelmas

Description

@tdelmas

Relevant error: AttributeError: module 'ast' has no attribute 'Num'

Working example:

name: Lint and Test Charts

on: [push, pull_request]

jobs:
  lint-test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v5

      - name: Set up Helm
        uses: azure/setup-helm@v4
        with:
          version: v3.17.0

      - uses: actions/setup-python@v6.0.0
        with:
          python-version: '3.12'
          check-latest: true
  
      - name: Set up chart-testing
        uses: helm/chart-testing-action@v2.7.0

      - name: Run chart-testing (lint)
        run: ct lint --all --chart-dirs .

If python-version: '3.12' is replaced by the value suggested by the documentation, python-version: '3.x' then it fails. (it also fails with python-version: '3.14')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions