Skip to content

Commit

Permalink
new plugin for test
Browse files Browse the repository at this point in the history
  • Loading branch information
laszukdawid committed Mar 21, 2024
1 parent 9efeb80 commit cbd7106
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci-main-build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- ci-test

jobs:
build-n-test:
Expand Down Expand Up @@ -32,9 +33,28 @@ jobs:
run: |
python -m PyEMD.tests.test_all
version-updated:
runs-on: ubuntu-latest
outputs:
pyemd_version: ${{ steps.version.outputs.pyemd_version }}
steps:
- uses: dorny/paths-filter@v3
id: version
with:
filters: |
pyemd_version:
- 'PyEMD/__init__.py'
- name: Check if version is updated
if: ${{ steps.version.outputs.pyemd_version == 'true'}}
run: echo "PyEMD version is updated"
- name: Check if version is not updated
if: ${{ steps.version.outputs.pyemd_version == 'false'}}
run: echo "PyEMD version is not updated"

deploy:
# Run 'deploy' job only if `PyEMD/__init__.py` is modified
if: github.event_name == 'push' && contains(github.event.head_commit.modified, 'PyEMD/__init__.py')
if: needs.version-updated.outputs.pyemd_version == 'false'
needs: version-updated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit cbd7106

Please sign in to comment.