Merge pull request #54 from csp-community/copier-update-2026-07-05T07… #114
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: Build Status | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v* | |
| paths-ignore: | |
| - LICENSE | |
| - README.md | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: actions-ext/python/setup@main | |
| with: | |
| version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: make develop | |
| - name: Lint | |
| run: make lint | |
| - name: Checks | |
| run: make checks | |
| - name: Build | |
| run: make build | |
| - name: Test | |
| run: make coverage | |
| - name: Run benchmarks | |
| run: | | |
| pip install csp asv | |
| cp csp_benchmarks/asv-machine.json ~/.asv-machine.json | |
| python -m asv run --config ${{ github.workspace }}/csp_benchmarks/asv.conf.json --machine github-actions --python=same --quick | |
| - name: Upload test results (Python) | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: test-results-${{ matrix.os }}-${{ matrix.python-version }} | |
| path: junit.xml | |
| if: ${{ always() }} | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 | |
| with: | |
| files: '**/junit.xml' | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Make dist | |
| run: make dist | |
| - uses: actions-ext/python/test-wheel@main | |
| with: | |
| module: csp_benchmarks | |
| - uses: actions-ext/python/test-sdist@main | |
| with: | |
| module: csp_benchmarks | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: dist-${{matrix.os}} | |
| path: dist |