Merge pull request #404 from cspotcode/patch-1 #11172
This file contains hidden or 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
| name: Plugins manifest validation | |
| on: | |
| [push, pull_request] | |
| jobs: | |
| skip_check_job: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - id: skip_check | |
| uses: fkirc/skip-duplicate-actions@master | |
| with: | |
| skip_after_successful_duplicate: 'true' | |
| paths: '["plugins/*.json"]' | |
| test: | |
| needs: skip_check_job | |
| if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Install dependencies | |
| run: | | |
| pip install -r ./ci/envs/requirements-validator.txt | |
| - name: Test with pytest | |
| run: | | |
| pytest ./ci/src/validator.py |