Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jun 10, 2024
1 parent 9805171 commit ed2b2a6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions {{ cookiecutter.slug }}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install dependencies
run: dnf install -y libpq-devel krb5-devel
run: |
dnf install -y libpq-devel krb5-devel
pip install poetry>=1.2
- name: Run the licenses check
run: tox -e licenses
Expand All @@ -59,7 +61,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install dependencies
run: dnf install -y libpq-devel krb5-devel
run: |
dnf install -y libpq-devel krb5-devel
pip install poetry>=1.2
- name: Build the docs
run: tox -e docs
Expand All @@ -79,7 +83,12 @@ jobs:
- uses: actions/checkout@v4

- name: Install dependencies
run: dnf install -y libpq-devel krb5-devel
run: |
dnf install -y libpq-devel krb5-devel
pip install poetry>=1.2
- 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.pyver {{'}}'}}-unit{% if cookiecutter.with_sqlalchemy %}-${{'{{'}} matrix.sqlaver {{'}}'}}{% endif %}
Expand Down Expand Up @@ -178,6 +187,8 @@ jobs:
name: Create a GitHub Release 📢
needs:
- publish-to-pypi
# The "build" dep is redundant but needed to access the changelog
- build
runs-on: ubuntu-latest
permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
Expand Down

0 comments on commit ed2b2a6

Please sign in to comment.