-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1.39 KB
/
dep_check.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
41
42
43
44
# Workflow name
name: Dependency Compatibility Check
# Controls when the workflow will run
on:
# Triggers the workflow on pull request (on main only) events
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "test"
test:
# The type of runner that the job will run on and timeout in minutes
name: Run pip install
runs-on: ubuntu-20.04
timeout-minutes: 10
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out our repository under $GITHUB_WORKSPACE, so our job can access it
- name: Check out repository code
uses: actions/checkout@v3
# Set up Python version
- name: Set up Python 3.6.8
uses: actions/setup-python@v4
with:
python-version: 3.6.8
# Runs a set of commands installing Python dependencies using the runners shell (Run a multi-line script)
- name: Install Python dependencies (Dev)
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements-dev.txt
- name: Install Python dependencies (Prod)
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt