-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 976 Bytes
/
pytest.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
name: Pytest
on:
workflow_call:
inputs:
os:
description: "OS version passed from the caller workflow"
default: "ubuntu-latest"
required: false
type: string
python-version:
description: "Python version passed from the caller workflow"
default: "3.12"
required: false
type: string
jobs:
build:
runs-on: ${{ inputs.os }}
name: Python ${{ inputs.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Display Python version
run: python --version
- name: Install requirements
run: pip install -r requirements-dev.txt
- name: Run Pytests
run: pytest --cov-report term-missing --cov