Add env fix for CI and remove caching
This commit is contained in:
@@ -20,16 +20,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
- name: Cache pip packages
|
- name: Run tox tests
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('test-requirements.txt') }}
|
|
||||||
|
|
||||||
- name: Run tox
|
|
||||||
run: |
|
run: |
|
||||||
pip install tox>=4.16
|
pip install tox>=4.16
|
||||||
source .env.example && tox
|
tox
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class Settings(BaseSettings):
|
|||||||
return allowed_ids
|
return allowed_ids
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
env_file = ".env"
|
env_file = [".env", ".env.example"]
|
||||||
|
|
||||||
|
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
|
|||||||
Reference in New Issue
Block a user