[DOP-26758] Fix tests #1172
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: Dev release | |
| on: | |
| push: | |
| branches-ignore: | |
| - dependabot/** | |
| - pre-commit-ci-update-config | |
| - master | |
| workflow_dispatch: | |
| env: | |
| DEFAULT_PYTHON: '3.13' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| wait-code-analysis: | |
| name: Dev release package | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'MobileTeleSystems/data-rentgen' # prevent running on forks | |
| environment: | |
| name: test-pypi | |
| url: https://test.pypi.org/p/data-rentgen | |
| permissions: | |
| id-token: write # to auth in Test PyPI | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Fix logo in Readme | |
| run: | | |
| sed -i "s#image:: docs/#image:: https://raw.githubusercontent.com/MobileTeleSystems/data-rentgen/$GITHUB_SHA/docs/#g" README.rst | |
| sed -i "s#logo_wide_white_text.svg#logo_wide.svg#g" README.rst | |
| - name: Build package | |
| run: uv build | |
| - name: Publish package | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository-url: https://test.pypi.org/legacy/ |