Add caching and test different style of env import
Some checks failed
Build Docker image / test (push) Failing after 3m17s
Build Docker image / build (push) Has been skipped

This commit is contained in:
Roman Krček
2024-10-14 09:22:47 +02:00
parent 7253745a50
commit 21afea7f39

View File

@@ -20,13 +20,16 @@ jobs:
with:
python-version: "3.11"
- name: Setup tox
run: pip install tox>=4.16
- name: Cache pip packages
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('test-requirements.txt') }}
- name: Run tox
run: |
source .env.example
tox
pip install tox>=4.16
source .env.example && tox
build:
runs-on: ubuntu-latest