From 87cfd1ea8cd9a7f5bee53f17a6c9e1e16d1f2b7a Mon Sep 17 00:00:00 2001 From: bomzheg Date: Sun, 6 Oct 2024 14:47:53 +0300 Subject: [PATCH] added publish ci --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c1f402d..e09cd5db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,3 +61,27 @@ jobs: run: uv venv && uv pip install .[test] - name: Test with pytest run: source .venv/bin/activate && pytest + docs: + needs: [build] + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v4 + - name: Install uv + run: pipx install uv + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: "pip" + cache-dependency-path: pyproject.toml + - name: Install dependencies + run: uv venv && uv pip install .[test] + - name: Render Aiogram-dialogs transitions + run: source .venv/bin/activate && python -m shvatka.tgbot.dialogs.__init__ + - name: Upload artifacts + uses: actions/upload-artifact@4 + with: + name: transitions + path: out/shvatka-dialogs.png +