Skip to content

adding ruff

adding ruff #164

Workflow file for this run

name: Release
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
- closed
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:
DOCKER_BUILDKIT: 1
jobs:
draft:
name: 'Check Draft State'
if: ${{ github.event.pull_request.draft != true }}
runs-on: ubuntu-latest
steps:
- name: 'Debug Action'
uses: hmarr/debug-action@v2
- run: |
echo ${{ github.event.pull_request.draft != true }}
echo "Pull Request is not draft, this workflow will continue."
check_env:
name: 'Detect Environment'
needs: draft
uses: './.github/workflows/check_env.yml'
check_path:
name: 'Detect Changed Paths'
needs: draft
uses: './.github/workflows/check_path.yml'
python:
name: 'Python'
uses: './.github/workflows/python.yml'
needs:
- check_env
- check_path
secrets: inherit
if: ${{ needs.check_path.outputs.python == 'true' }}
with:
env: ${{ needs.check_env.outputs.env }}
push: ${{ needs.check_env.outputs.env == 'production' || needs.check_env.outputs.env == 'development' }}