lock before pushing new version (#135) #308
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: Test Publish to PYPI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-n-publish: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: actions/setup-python@v2 | |
| - run: pip install uv | |
| - run: uv build | |
| - run: pip install 'pytest==7.1' | |
| - run: pip install dist/*gz --force-reinstall | |
| - run: pytest --nbmake tests/resources/mock.ipynb | |
| - run: pip install dist/*whl --force-reinstall | |
| - run: pytest --nbmake tests/resources/mock.ipynb | |
| - run: uv publish --check-url https://test.pypi.org/project/nbmake/ --publish-url "https://test.pypi.org/legacy/" -t ${{ secrets.TEST_PYPI_API_TOKEN }} |