-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (40 loc) · 1023 Bytes
/
tests.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
name: Tests
on:
push:
branches:
- dev
workflow_dispatch:
inputs:
python_v:
description: 'python version'
required: true
default: '3.9'
type: choice
options:
- '3.9'
- '3.10'
- '3.11'
commit_ref:
description: Specific ref (branch, tag or SHA)
default: ''
type: string
required: false
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit_ref || github.ref }}
- name: Set up Python ${{ github.event.inputs.python_v || '3.9' }}
uses: actions/setup-python@v5
with:
python-version: ${{ github.event.inputs.python_v || '3.9' }}
cache: "pip"
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run test
run: python -m pytest