From fd920fead610761960cd85e009e65a096553c317 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Sat, 2 Nov 2024 23:35:44 +0900 Subject: [PATCH] ci: Python version based on pyproject.toml --- .github/workflows/ci.yaml | 6 +++--- .github/workflows/pypi.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 34fab00..698bcca 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: run: pipx install poetry - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: './libertai_agents/pyproject.toml' cache: 'poetry' - name: Install dependencies run: poetry install @@ -40,7 +40,7 @@ jobs: run: pipx install poetry - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: './libertai_agents/pyproject.toml' cache: 'poetry' - name: Install dependencies run: pip install ruff @@ -59,7 +59,7 @@ jobs: run: pipx install poetry - uses: actions/setup-python@v5 with: - python-version-file: 'pyproject.toml' + python-version-file: './backend/pyproject.toml' cache: 'poetry' - name: Install dependencies run: poetry install diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index 74bc4a0..c45e545 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -22,7 +22,7 @@ jobs: run: pipx install poetry - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: './libertai_agents/pyproject.toml' cache: 'poetry' - name: Install dependencies run: poetry install