Skip to content

Commit

Permalink
Merge pull request #4 from forticheprod/3-add-quality-ci-quality-with…
Browse files Browse the repository at this point in the history
…-ruff-and-black

Add Ruff and Black workflows
  • Loading branch information
supernarthur authored Mar 1, 2024
2 parents e66a70b + 1e83012 commit 80957ba
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
name: "build_and_release"
name: "test_build_and_release"

on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
release:
types:
- published
types: [created]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Ruff
uses: chartboost/ruff-action@v1
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Black
uses: psf/black@stable
build_and_release:
runs-on: ubuntu-latest
needs: [ruff, black]
if: github.event_name == 'release' && github.event.action == 'created'
permissions:
contents: read
packages: write
Expand Down

0 comments on commit 80957ba

Please sign in to comment.