Release #1
This file contains 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: release | |
on: workflow_dispatch | |
env: | |
GH_TOKEN: ${{ github.token }} | |
BRANCH: ${{ github.head_ref || github.ref_name }} | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- run: gh repo clone amirouche/asyncio-foundationdb -- --branch $BRANCH --depth 1 | |
- run: cd asyncio-foundationdb && git fetch --tags | |
- run: cd asyncio-foundationdb && gh release create --draft $(git tag --points-at HEAD) | |
check-build-release: | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: | |
- 3.9 | |
- "3.10" | |
- "3.11" | |
# - "3.12" # it is still early, first released 2023-09-19. | |
- pypy-3.8 | |
- pypy-3.9 | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.python-version }} on ${{ matrix.os }} | |
needs: create-release | |
steps: | |
- run: gh repo clone amirouche/asyncio-foundationdb -- --branch $BRANCH --depth 1 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- run: python --version | |
- run: cd asyncio-foundationdb && sudo make init-foundationdb | |
- run: cd asyncio-foundationdb && ./venv python | |
- run: cd asyncio-foundationdb && ./venv make init | |
- run: cd asyncio-foundationdb && ./venv make check | |
- run: cd asyncio-foundationdb && ./venv poetry config pypi-token.pypi ${{ secrets.PYPI_ASYNCIO_FOUNDATIONDB }} | |
- run: cd asyncio-foundationdb && ./venv poetry release --build |