Skip to content

Bump actions/setup-python from 6 to 7 in the actions-deps group #317

Bump actions/setup-python from 6 to 7 in the actions-deps group

Bump actions/setup-python from 6 to 7 in the actions-deps group #317

Workflow file for this run

name: linting-and-code-formatting
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout IMAS-Python sources
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
# until saxonche is available in 3.13
# https://saxonica.plan.io/issues/6561
python-version: "<3.13"
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install the code linting and formatting tools
run: pip install --upgrade 'black >=24,<25' flake8
- name: Check formatting of code with black
run: black --check imas
- name: Check linting with flake8
run: flake8 imas