adding ruff #166
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }} |