Skip to content

Commit

Permalink
Update action versions
Browse files Browse the repository at this point in the history
Fixes OCA#18 and it will probably fix a cache problem affecting OCA#17.
  • Loading branch information
Jairo Llopis committed Oct 8, 2020
1 parent 19e9a20 commit e92a7c3
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ jobs:
- 13.0
steps:
# Prepare environment
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.3
- name: Install python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
- name: Patch $PATH
run: echo "::set-env name=PATH::$HOME/.local/bin:$PATH"
- run: pip install pipx
- run: pipx install poetry
- name: Generate cache key PY
run:
echo "::set-env name=PY::${{ runner.os }} python -VV | sha256sum) $(pipx
--version | sha256sum) $(poetry --version | sha256sum) ${{
hashFiles('pyproject.toml') }} ${{ hashFiles('poetry.lock') }}"
- uses: actions/cache@v1
- uses: actions/cache@v2.1.1
with:
path: ~/.cache
key: cache ${{ env.PY }}
- uses: actions/cache@v1
with:
path: ~/.local
key: local ${{ env.PY }}
path: |
~/.cache
~/.local
# HACK https://github.com/actions/cache/issues/2#issuecomment-673493515
# If you need to "clear" cache, just update the `CACHE_DATE` secret,
# putting current date (and time, if needed)
key: >-
cache ${{ secrets.CACHE_DATE }} ${{ env.PY }} ${{ runner.os }} $(python -VV
| sha256sum) $(pipx --version | sha256sum) $(poetry --version | sha256sum)
${{ hashFiles('pyproject.toml') }} ${{ hashFiles('poetry.lock') }}
- run: poetry install

# Let tests issue git commits
Expand Down

0 comments on commit e92a7c3

Please sign in to comment.