Skip to content

Bump actions/setup-python from 6.3.0 to 7.0.0 #2706

Bump actions/setup-python from 6.3.0 to 7.0.0

Bump actions/setup-python from 6.3.0 to 7.0.0 #2706

Workflow file for this run

name: Ruff (linter and code formatter)
on: [ pull_request, push ]
permissions:
contents: read
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Run Cimon
uses: cycodelabs/cimon-action@a0870cc3d9e3bf3cedd28bdb67bf3fd3281e5941 # v1.0.1
with:
client-id: ${{ secrets.CIMON_CLIENT_ID }}
secret: ${{ secrets.CIMON_SECRET }}
prevent: true
allowed-hosts: >
files.pythonhosted.org
install.python-poetry.org
pypi.org
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.9
- name: Load cached Poetry setup
id: cached-poetry
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.local
key: poetry-ubuntu-1 # increment to reset cache
- name: Setup Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@a783c322200f0519c7926aa6faa857c4e23e9263 # v1.4.2
with:
version: 2.2.1
- name: Add Poetry to PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install
- name: Run linter check
run: poetry run ruff check --output-format=github .
- name: Run code style check
run: poetry run ruff format --check .