Cache pipenv
This commit is contained in:
parent
684d20c94b
commit
014b1baae8
16
.github/workflows/Purge-Database.yaml
vendored
16
.github/workflows/Purge-Database.yaml
vendored
@ -18,13 +18,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: python -m pip install --upgrade pipenv wheel
|
||||||
pip install pipenv
|
- uses: actions/cache@v2
|
||||||
pipenv lock --requirements > requirements.txt
|
with:
|
||||||
pip install -r requirements.txt
|
path: ~/.local/share/virtualenvs
|
||||||
|
key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-pipenv-
|
||||||
|
- name: Install dependencies
|
||||||
|
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
||||||
|
run: pipenv install
|
||||||
- name: Purge
|
- name: Purge
|
||||||
env:
|
env:
|
||||||
DATABASE: ${{ secrets.DATABASE }}
|
DATABASE: ${{ secrets.DATABASE }}
|
||||||
EXPIRE_TIME: ${{ secrets.EXPIRE_TIME }}
|
EXPIRE_TIME: ${{ secrets.EXPIRE_TIME }}
|
||||||
run: |
|
run: pipenv run python ./clean.py || echo 'Check your configuration.'
|
||||||
python ./clean.py || echo 'Check your configuration.'
|
|
||||||
|
16
.github/workflows/Subscribe.yaml
vendored
16
.github/workflows/Subscribe.yaml
vendored
@ -18,10 +18,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: python -m pip install --upgrade pipenv wheel
|
||||||
pip install pipenv
|
- uses: actions/cache@v2
|
||||||
pipenv lock --requirements > requirements.txt
|
with:
|
||||||
pip install -r requirements.txt
|
path: ~/.local/share/virtualenvs
|
||||||
|
key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-pipenv-
|
||||||
|
- name: Install dependencies
|
||||||
|
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
||||||
|
run: pipenv install
|
||||||
- name: Subscribe
|
- name: Subscribe
|
||||||
env:
|
env:
|
||||||
DATABASE: ${{ secrets.DATABASE }}
|
DATABASE: ${{ secrets.DATABASE }}
|
||||||
@ -31,5 +36,4 @@ jobs:
|
|||||||
TG_DISABLE_WEB_PAGE_PREVIEW: ${{ secrets.TG_DISABLE_WEB_PAGE_PREVIEW }}
|
TG_DISABLE_WEB_PAGE_PREVIEW: ${{ secrets.TG_DISABLE_WEB_PAGE_PREVIEW }}
|
||||||
TG_PARSE_MODE: ${{ secrets.TG_PARSE_MODE }}
|
TG_PARSE_MODE: ${{ secrets.TG_PARSE_MODE }}
|
||||||
EXPIRE_TIME: ${{ secrets.EXPIRE_TIME }}
|
EXPIRE_TIME: ${{ secrets.EXPIRE_TIME }}
|
||||||
run: |
|
run: pipenv run python ./main.py || echo 'Check your configuration.'
|
||||||
python ./main.py || echo 'Check your configuration.'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user