ci: add one-time version check workflow #3
Workflow file for this run
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: One time version test | |
on: [push, pull_request] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v9 | |
- name: Install deps | |
run: poetry install | |
- name: Assert tag version matches __version__ attribute | |
run: | | |
poetry run python -c "import sys; sys.path.pop(0); \ | |
from aleph_alpha_client import __version__; \ | |
assert __version__ == '7.5.0'" |