From 460d7f7ef1bc75b31d6857d36bdde63dbee7b860 Mon Sep 17 00:00:00 2001 From: Moritz Althaus Date: Mon, 4 Nov 2024 15:01:28 +0100 Subject: [PATCH] ci: add one-time version check workflow --- .github/workflows/test-version.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test-version.yml diff --git a/.github/workflows/test-version.yml b/.github/workflows/test-version.yml new file mode 100644 index 0000000..57b27ac --- /dev/null +++ b/.github/workflows/test-version.yml @@ -0,0 +1,22 @@ +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); \ + import aleph_alpha_client; \ + assert aleph_alpha_client.__version__ == '7.5.0'"