Add initial tests for utility and configure CI with pytest #15
Workflow file for this run
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: Publish RF-DETR Pre-Releases to PyPI | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]+a[0-9]" | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]+b[0-9]" | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]+rc[0-9]" | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+a[0-9]" | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+b[0-9]" | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+rc[0-9]" | |
| - "[0-9]+.[0-9]+.[0-9]+a[0-9]" | |
| - "[0-9]+.[0-9]+.[0-9]+b[0-9]" | |
| - "[0-9]+.[0-9]+.[0-9]+rc[0-9]" | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - '.github/workflows/build-package.yml' | |
| - '.github/workflows/publish-pre-release.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-pkg: | |
| uses: ./.github/workflows/build-package.yml | |
| publish-pre-release: | |
| name: Publish Pre-release Package | |
| needs: build-pkg | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: test | |
| url: https://pypi.org/project/rfdetr/ | |
| timeout-minutes: 10 | |
| permissions: | |
| id-token: write # Required for PyPI publishing | |
| steps: | |
| - name: 📥 Download distribution artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Display distribution files | |
| run: ls -lh dist/ | |
| - name: 🚀 Publish to PyPi | |
| if: github.event_name != 'pull_request' | |
| uses: pypa/[email protected] | |
| with: | |
| attestations: true |