Skip to content

Commit

Permalink
add os to cache name
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Henning committed Jul 29, 2023
1 parent b59782f commit f2f104a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
- name: Setup Poetry
run: |
pip install --upgrade pip setuptools wheel poetry==${{ env.POETRY_VERSION }}
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Export requirements.txt
run: poetry export -f requirements.txt --output requirements.txt
- uses: docker/metadata-action@v4
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ./.venv
key: venv-build-poetry-${{ env.POETRY_VERSION }}-python-${{ env.PYTHON_VERSION }}-${{ hashFiles('poetry.lock') }}
key: venv-build-poetry-${{ env.POETRY_VERSION }}-python-${{ env.PYTHON_VERSION }}-${{ hashFiles('poetry.lock') }}-${{ runner.os }}
- name: Install dependencies
run: poetry install --without test
- name: Run PyInstaller
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
- uses: actions/cache@v3
with:
path: ./.venv
key: venv-test-poetry-${{ env.POETRY_VERSION }}-python-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}
key: venv-test-poetry-${{ env.POETRY_VERSION }}-python-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}-${{ runner.os }}
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-python-${{ matrix.python }}-${{ hashFiles('poetry.lock', '.pre-commit-config.yaml') }}
key: pre-commit-python-${{ matrix.python }}-${{ hashFiles('poetry.lock', '.pre-commit-config.yaml') }}-${{ runner.os }}
- name: Install dependencies
run: poetry install --no-interaction --without build
- name: Run linting
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tgtg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ./.venv
key: venv-test-poetry-${{ env.POETRY_VERSION }}-python-${{ env.PYTHON_VERSION }}-${{ hashFiles('poetry.lock') }}
key: venv-test-poetry-${{ env.POETRY_VERSION }}-python-${{ env.PYTHON_VERSION }}-${{ hashFiles('poetry.lock') }}-${{ runner.os }}
- name: Install dependencies
run: poetry install --without build
- name: Run tests
Expand Down

0 comments on commit f2f104a

Please sign in to comment.