diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index ded0e50..7888d43 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -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