diff --git a/.github/auto_label_pr.yml b/.github/auto_label_pr.yml index 579a44c..edb43a0 100644 --- a/.github/auto_label_pr.yml +++ b/.github/auto_label_pr.yml @@ -42,6 +42,7 @@ github: - changed-files: - any-glob-to-any-file: - '.gitignore' + - '.github/ISSUE_TEMPLATE/*' dependencies: - changed-files: diff --git a/.github/workflows/auto-label-issue.yaml b/.github/workflows/auto-label-issue.yaml index 1b51c18..71a9282 100644 --- a/.github/workflows/auto-label-issue.yaml +++ b/.github/workflows/auto-label-issue.yaml @@ -1,7 +1,7 @@ name: Labeling new issue on: issues: - types: ['opened', 'reopened'] + types: [opened, reopened] jobs: build: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 53277f2..37b78ea 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -2,8 +2,8 @@ name: documentation on: push: - branches: - - main + tags: + - 'v*.*.*' workflow_dispatch: permissions: @@ -36,7 +36,6 @@ jobs: make html - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/sphinx_action' }} with: publish_branch: gh-pages github_token: ${{ secrets.TOKEN_GH }} diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index aac8afe..f204c7d 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -2,7 +2,14 @@ name: Run Tests on: pull_request: - branches: ['main', 'develop'] + branches: + - main + - develop + paths: + - scraibe/** + - pyproject.toml + - requirements.txt + - test/** workflow_dispatch: jobs: diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 1e5c277..df0152c 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,9 +1,11 @@ name: Ruff -on: push +on: + push: + paths: + - '**.py' jobs: ruff: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push') }} steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 \ No newline at end of file