Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ steps.prep.outputs.build_args }}-${{ hashFiles('**/poetry.lock') }}
Expand Down
80 changes: 40 additions & 40 deletions .github/workflows/installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,44 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Output Python version
id: python-version
run: |
echo "::set-output name=python-version::$(cat .python-version)"
- name: Cache pyenv versions
uses: actions/cache@v2.1.1
id: cached-pyenvs
with:
path: /opt/hostedtoolcache/pyenv_root
key: ${{ runner.os }}-pyenv
- name: Install pyenv versions
uses: gabrielfalcao/pyenv-action@v11
with:
default: ${{ steps.python-version.outputs.python-version }}
# if: steps.cached-pyenvs.outputs.cache-hit != 'true'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python
PATH=$PATH:$HOME/.poetry/bin
pyenv install -s
poetry config virtualenvs.in-project true
poetry env info
poetry env use `cat .python-version`
- name: Cache dependencies
uses: actions/cache@v2.1.1
id: cached-poetry-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
PATH=$PATH:$HOME/.poetry/bin
poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Run tests
run: |
PATH=$PATH:$HOME/.poetry/bin
poetry run pytest
- name: Output Python version
id: python-version
run: |
echo "::set-output name=python-version::$(cat .python-version)"
- name: Cache pyenv versions
uses: actions/cache@v4
id: cached-pyenvs
with:
path: /opt/hostedtoolcache/pyenv_root
key: ${{ runner.os }}-pyenv
- name: Install pyenv versions
uses: gabrielfalcao/pyenv-action@v11
with:
default: ${{ steps.python-version.outputs.python-version }}
# if: steps.cached-pyenvs.outputs.cache-hit != 'true'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python
PATH=$PATH:$HOME/.poetry/bin
pyenv install -s
poetry config virtualenvs.in-project true
poetry env info
poetry env use `cat .python-version`
- name: Cache dependencies
uses: actions/cache@v4
id: cached-poetry-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
PATH=$PATH:$HOME/.poetry/bin
poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Run tests
run: |
PATH=$PATH:$HOME/.poetry/bin
poetry run pytest
Loading
Loading