Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadari committed Oct 25, 2023
1 parent 63e3dba commit 032b57d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/lint_type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
workflow_dispatch:

env:
POETRY_VERSION: 1.4.2
PYTHON_VERSION: "3.11"

jobs:
lint-and-type-check:
name: Lint and type-check
Expand All @@ -16,20 +20,22 @@ jobs:
uses: actions/checkout@v3

- name: Load cached .local
id: cache-poetry
uses: actions/cache@v3
with:
path: /home/runner/.local
key: dotlocal-3.8-${{ hashFiles('.github/workflows') }}
key: dotlocal-${{ env.POETRY_VERSION }}

- name: Install poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org/ | python -
curl -sSL https://install.python-poetry.org/ | python - --version ${{ env.POETRY_VERSION }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Python + Retrieve Poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: ${{ env.PYTHON_VERSION }}
cache: "poetry"

- name: Display Python version
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- ".vscode/**"
workflow_dispatch:

env:
POETRY_VERSION: 1.4.2
PYTHON_VERSION: "3.11"

jobs:
test:
name: Test
Expand Down Expand Up @@ -42,7 +46,7 @@ jobs:
- name: Install Python + Retrieve Poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
python-version: ${{ env.PYTHON_VERSION }}
cache: "poetry"

- name: Display Python version
Expand Down

0 comments on commit 032b57d

Please sign in to comment.