Bump lewagon/wait-on-check-action from 1.9.0 to 1.9.1 #143
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: test_build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**.py" | |
| - "setup.cfg" | |
| - "MANIFEST.in" | |
| - "pyproject.toml" | |
| - "requirements.txt" | |
| - ".github/workflows/test_build.yaml" | |
| - ".github/workflows/tag_and_release.yaml" | |
| pull_request: | |
| paths: | |
| - "**.py" | |
| - "setup.cfg" | |
| - "MANIFEST.in" | |
| - "pyproject.toml" | |
| - "requirements.txt" | |
| - ".github/workflows/test_build.yaml" | |
| - ".github/workflows/tag_and_release.yaml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test_build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| py-version: ["3.8", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: ${{ matrix.py-version }} | |
| - name: Install requirements | |
| run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Test python import from src | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew; print(pre_commit_jgstew.__version__)" | |
| - name: Run pytest | |
| shell: bash | |
| run: | | |
| pip install pytest | |
| python -m pytest -q | |
| - name: Install build tools | |
| run: pip install setuptools wheel build | |
| - name: Get version from setup.cfg | |
| run: python setup.py --version | |
| - name: Run build | |
| run: python3 -m build | |
| - name: Get Wheel File Path | |
| id: getwheelfile | |
| shell: bash | |
| run: echo "wheelfile=$(find "dist" -type f -name "*.whl")" >> $GITHUB_OUTPUT | |
| - name: Test pip install of wheel | |
| shell: bash | |
| run: pip install $(find "dist" -type f -name "*.whl") | |
| - name: Test python import | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew; print(pre_commit_jgstew.__version__)" | |
| - name: Test pre-commit hook invoke | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew.git_clean; pre_commit_jgstew.git_clean.main()" | |
| - name: Test pre-commit hook invoke | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew.minimum_changes; pre_commit_jgstew.minimum_changes.main()" | |
| - name: Test pre-commit hook invoke | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew.regex_search_filter_replace; pre_commit_jgstew.regex_search_filter_replace.main()" | |
| - name: Test pre-commit hook invoke | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew.revert_missing_change; pre_commit_jgstew.revert_missing_change.main()" | |
| - name: Test pre-commit hook invoke | |
| shell: bash | |
| run: python -c "import pre_commit_jgstew.validate_plist; pre_commit_jgstew.validate_plist.main()" | |
| - name: pip install of pre-commit | |
| shell: bash | |
| run: pip install pre-commit | |
| - name: pre-commit try-repo | |
| shell: bash | |
| run: pre-commit try-repo . --files tests/examples/example.test_file tests/examples/example-test.bes tests/examples/nested-sample.plist |