Skip to content

Commit

Permalink
chore(updating ci/cd):
Browse files Browse the repository at this point in the history
  • Loading branch information
stvnksslr committed Oct 29, 2023
1 parent 890a303 commit a4fc6c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
tags-ignore:
- "*.*"

env:
PYTHON_VERSION: "3.12"
POETRY_VERSION: "1.6.1"

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -23,21 +27,30 @@ jobs:
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: 'poetry'
python-version: ${{ env.PYTHON_VERSION }}
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1.3.4
with:
version: 1.6.1
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
#----------------------------------------------
# run linter suite
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository_owner }}/${{github.repository}}
images: ${{github.repository}}
#----------------------------------------------
# setup extra builder
#----------------------------------------------
Expand Down

0 comments on commit a4fc6c6

Please sign in to comment.