Skip to content

Commit

Permalink
🚧 disabled changed files in ci for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-maykin committed Apr 23, 2024
1 parent 1290acf commit 23e20eb
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 23e20eb

Please sign in to comment.