-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 disabled changed files in ci for testing
- Loading branch information
1 parent
1290acf
commit 23e20eb
Showing
1 changed file
with
35 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,46 +19,46 @@ env: | |
|
||
jobs: | ||
# determine changed files to decide if certain jobs can be skipped or not | ||
changed-files: | ||
runs-on: ubuntu-latest # windows-latest | macos-latest | ||
name: Determine changed files | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Get changed PY files | ||
id: changed-py-files | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: | | ||
^src/.+\.py | ||
- name: Get changed JS files | ||
id: changed-js-files | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: | | ||
^src/.+\.js | ||
- name: Get changed requirements files | ||
id: changed-requirements | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: ^requirements/.+\.txt$ | ||
|
||
outputs: | ||
changed-py-files: ${{ steps.changed-py-files.outputs.any_changed }} | ||
changed-js-files: ${{ steps.changed-js-files.outputs.any_changed }} | ||
changed-requirements: ${{ steps.changed-requirements.outputs.any_changed }} | ||
# changed-files: | ||
# runs-on: ubuntu-latest # windows-latest | macos-latest | ||
# name: Determine changed files | ||
# steps: | ||
|
||
# - uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 2 | ||
|
||
# - name: Get changed PY files | ||
# id: changed-py-files | ||
# uses: tj-actions/[email protected] | ||
# with: | ||
# files: | | ||
# ^src/.+\.py | ||
# - name: Get changed JS files | ||
# id: changed-js-files | ||
# uses: tj-actions/[email protected] | ||
# with: | ||
# files: | | ||
# ^src/.+\.js | ||
# - name: Get changed requirements files | ||
# id: changed-requirements | ||
# uses: tj-actions/[email protected] | ||
# with: | ||
# files: ^requirements/.+\.txt$ | ||
|
||
# outputs: | ||
# changed-py-files: ${{ steps.changed-py-files.outputs.any_changed }} | ||
# changed-js-files: ${{ steps.changed-js-files.outputs.any_changed }} | ||
# changed-requirements: ${{ steps.changed-requirements.outputs.any_changed }} | ||
|
||
tests: | ||
name: Tests (PG ${{ matrix.postgres }}) | ||
runs-on: ubuntu-latest | ||
needs: | ||
- changed-files | ||
# needs: | ||
# - changed-files | ||
|
||
# only run tests if source files have changed (e.g. skip for PRs that only update docs) | ||
if: ${{ needs.changed-files.outputs.changed-py-files == 'true'|| needs.changed-files.outputs.changed-requirements == 'true'|| github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
# # only run tests if source files have changed (e.g. skip for PRs that only update docs) | ||
# if: ${{ needs.changed-files.outputs.changed-py-files == 'true'|| needs.changed-files.outputs.changed-requirements == 'true'|| github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
|
||
strategy: | ||
matrix: | ||
|