-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.08 KB
/
check-requirements.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# django-opensearch
# .github/workflows/check-requirements.yml
name: "check-requirements"
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
workflow_call:
env:
DEFAULT_PYTHON_VERSION: "3.10"
jobs:
check-requirements:
name: "check-requirements"
runs-on: "ubuntu-latest"
steps:
- name: "Git clone"
id: "git-clone"
uses: "actions/checkout@v2"
- name: "Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}"
id: "set-up-python"
uses: "actions/setup-python@v2"
with:
python-version: "${{ env.DEFAULT_PYTHON_VERSION }}"
- name: "Pip cache"
id: "pip-cache"
uses: "actions/cache@v2"
with:
path: "~/.cache/pip"
key: "${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}"
restore-keys: |
"${{ runner.os }}-pip-"
- name: "Install requirements"
id: "install-requirements"
run: "make install"
- name: "Check outdated requirements"
id: "check-outdated-requirements"
continue-on-error: true
run: "pip-outdated"