Add env fix for CI and remove caching
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -65,7 +65,7 @@ class Settings(BaseSettings):
|
||||
return allowed_ids
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
env_file = [".env", ".env.example"]
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
||||
Reference in New Issue
Block a user