Skip to content

Commit

Permalink
ci: Python version based on pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Nov 2, 2024
1 parent 6767ed0 commit ff2a388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -68,7 +68,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
workdir: './backend'
target: "./backend"
target: "./src"
execute_command: 'poetry run mypy'

backend-ruff:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff2a388

Please sign in to comment.