Improve CITATION.cff and update release script #11
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: Run CI Checks | |
| on: [push, pull_request] | |
| jobs: | |
| detect-source-changes: | |
| name: Detect Source Changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| source_changed: ${{ steps.filter.outputs.source }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Detect Source Changes | |
| id: filter | |
| uses: dorny/paths-filter@v4.0.1 | |
| with: | |
| filters: | | |
| source: | |
| - 'requake/**' | |
| integration-tests: | |
| name: Run Integration Tests | |
| needs: | |
| - detect-source-changes | |
| if: needs.detect-source-changes.outputs.source_changed == 'true' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Set Up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Requake and Dependencies | |
| run: python -m pip install . | |
| - name: Run Integration Tests | |
| run: bash tests/run_all_tests.sh run | |
| - name: Clean Integration Test Outputs | |
| if: always() | |
| run: bash tests/run_all_tests.sh clean | |
| dist: | |
| name: Build Distribution Packages | |
| needs: | |
| - detect-source-changes | |
| - integration-tests | |
| if: >- | |
| always() && | |
| (needs.detect-source-changes.outputs.source_changed != 'true' || | |
| needs.integration-tests.result == 'success') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Build Wheel and Source Distribution | |
| run: pipx run build | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| path: dist/* | |
| - name: Validate Package Metadata | |
| run: pipx run twine check dist/* |