mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
add test cache
This commit is contained in:
parent
580d55fb68
commit
714e9c6660
1 changed files with 12 additions and 1 deletions
13
.github/workflows/python-app.yml
vendored
13
.github/workflows/python-app.yml
vendored
|
@ -19,6 +19,16 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Python version
|
||||
id: get-python-version
|
||||
run: |
|
||||
echo "::set-output \"name=python::$(python --version)\""
|
||||
shell: bash
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
.venv
|
||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ steps.get-python-version.outputs.python }}
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
|
@ -26,7 +36,8 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry install
|
||||
poetry config --local virtualenvs.in-project true
|
||||
poetry install --remove-untracked
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
poetry run pytest
|
||||
|
|
Loading…
Add table
Reference in a new issue