The dev branch was renamed to develop for coherence with other apps #12
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: Test & Build | |
on: | |
push: | |
branches: | |
- stable | |
- develop | |
- main | |
tags: | |
- v** | |
pull_request: | |
branches: | |
- stable | |
- develop | |
- main | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y nodejs-npm | |
- name: Mark the working directory as safe for Git | |
run: git config --global --add safe.directory $PWD | |
- name: Run the tests | |
run: tox -e ${{ matrix.toxenv }} | |
strategy: | |
matrix: | |
toxenv: | |
- lint | |
- format | |
- bandit | |
- jslint | |
github-release: | |
name: Create a GitHub Release 📢 | |
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'rc') # only release on final tag pushes | |
needs: | |
- checks | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # IMPORTANT: mandatory for making GitHub Releases | |
id-token: write # IMPORTANT: mandatory for sigstore | |
steps: | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
generate_release_notes: true |