Added tests, modified Makefile commands, removed nbqa and more #155
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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| env: | |
| SRC_PYTHON_VERSION: "3.11" | |
| TEST_PATH: "tests" | |
| jobs: | |
| setup-test: | |
| name: Setup and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Python Environment | |
| uses: ./.github/actions/setup-python-env | |
| with: | |
| src-python-version: ${{ env.SRC_PYTHON_VERSION }} | |
| uv-group: "pipeline" | |
| uv-extra: "--all-extras" | |
| - name: Run Tests | |
| uses: ./.github/actions/test-code | |
| with: | |
| src-tests-folder: ${{ env.TEST_PATH }} | |
| build-deploy-docs: | |
| if: github.ref == 'refs/heads/main' | |
| name: Build MkDocs Documentation | |
| runs-on: ubuntu-latest | |
| needs: setup-test | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python Environment | |
| uses: ./.github/actions/setup-python-env | |
| with: | |
| src-python-version: ${{ env.SRC_PYTHON_VERSION }} | |
| uv-group: "documentation" | |
| - name: Get Version | |
| id: version | |
| uses: ./.github/actions/obtain-version | |
| - name: Build Documentation | |
| uses: ./.github/actions/build-mkdocs | |
| with: | |
| docs-version: ${{ steps.version.outputs.version }} | |
| create-release: | |
| if: github.ref == 'refs/heads/main' | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| needs: build-deploy-docs | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python Environment | |
| uses: ./.github/actions/setup-python-env | |
| with: | |
| src-python-version: ${{ env.SRC_PYTHON_VERSION }} | |
| - name: Get Version | |
| id: version | |
| uses: ./.github/actions/obtain-version | |
| - name: Create Release | |
| id: release | |
| uses: ./.github/actions/create-release | |
| with: | |
| version: ${{ steps.version.outputs.version }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Release Summary | |
| run: | | |
| echo "# Release Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Version:** ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Created:** ${{ steps.release.outputs.created }}" >> $GITHUB_STEP_SUMMARY |