Add caching and test different style of env import
This commit is contained in:
@@ -20,13 +20,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
- name: Setup tox
|
- name: Cache pip packages
|
||||||
run: pip install tox>=4.16
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('test-requirements.txt') }}
|
||||||
|
|
||||||
- name: Run tox
|
- name: Run tox
|
||||||
run: |
|
run: |
|
||||||
source .env.example
|
pip install tox>=4.16
|
||||||
tox
|
source .env.example && tox
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user