Add env fix for CI and remove caching
All checks were successful
Build Docker image / test (push) Successful in 2m13s
Build Docker image / build (push) Successful in 4m41s

This commit is contained in:
Roman Krček
2024-10-14 09:38:02 +02:00
parent 98250acd21
commit f2fcea2333
2 changed files with 3 additions and 9 deletions

View File

@@ -20,16 +20,10 @@ jobs:
with:
python-version: "3.11"
- 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
- name: Run tox tests
run: |
pip install tox>=4.16
source .env.example && tox
tox
build:
runs-on: ubuntu-latest

View File

@@ -65,7 +65,7 @@ class Settings(BaseSettings):
return allowed_ids
class Config:
env_file = ".env"
env_file = [".env", ".env.example"]
settings = Settings()