workflows: cleanup

This commit is contained in:
Sina Atalay
2024-12-25 05:19:15 -05:00
parent a326fb2549
commit ff93ddb4ee
4 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,8 @@ name: Deploy the documentation
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -27,9 +28,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Hatch
uses: pypa/hatch@install
uses: pypa/hatch@install
- name: Build the website
run: |
@@ -51,4 +52,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

View File

@@ -6,7 +6,7 @@ on:
types:
- published
workflow_dispatch: # to make the workflow triggerable manually
jobs:
call_tests_workflow:
name: Test
@@ -51,4 +51,4 @@ jobs:
with:
subject-name: rendercv/rendercv
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
push-to-registry: true

View File

@@ -13,7 +13,8 @@ jobs:
publish:
name: Publish to PyPI
needs: [call_tests_workflow]
needs:
- call_tests_workflow
runs-on: ubuntu-latest
environment: release

View File

@@ -3,9 +3,11 @@ name: Test
# GitHub events that triggers the workflow:
on:
push:
branches: ["main", "dev"]
branches:
- "*"
pull_request:
branches: ["main", "dev"]
branches:
- "*"
workflow_call: # to make the workflow triggerable from other workflows (publish-to-pypi.yaml)
workflow_dispatch: # to make the workflow triggerable manually
@@ -31,7 +33,7 @@ jobs:
- name: Test
run: hatch run test.py${{ matrix.python-version }}:test-and-report
- name: Rename the coverage file
run: mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}