-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.12 KB
/
tests.yml
File metadata and controls
40 lines (38 loc) · 1.12 KB
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
name: Run Tests
on:
workflow_call:
inputs:
install_command:
description: The command for installing the package to test.
required: true
type: string
jobs:
run-tests:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ ubuntu-latest, windows-latest, macOS-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install testing environment
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest pytest-mock pytest-cov
- name: Install package
uses: Wandalen/wretry.action@master
with:
command: ${{ inputs.install_command }}
attempt_limit: 10
attempt_delay: 10000
- name: Run tests on package
run: pytest
# - name: Debug with tmate on failure
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true