Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Uses a change file action to filter only changed src/ files

Trenton Holmesea7a1012b98d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 55fc06d7f..fb3749dc7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -115,6 +115,8 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
-
name: Install pipenv
run: pipx install pipenv
@@ -139,10 +141,22 @@ jobs:
run: |
cd src/
pipenv run pytest
+ -
+ name: Get changed files
+ id: changed-files-specific
+ uses: tj-actions/[email protected]
+ with:
+ files: |
+ src/**
+ -
+ name: List all changed files
+ run: |
+ for file in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do
+ echo "${file} was changed"
+ done
-
name: Publish coverage results
- # Publish results for 3.9, and not for dependabot branches
- if: matrix.python-version == '3.9' && !contains(github.ref, 'dependabot')
+ if: matrix.python-version == '3.9' && steps.changed-files-specific.outputs.any_changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/coveralls-clients/coveralls-python/issues/251