-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (25 loc) · 954 Bytes
/
Copy pathci-python.yml
File metadata and controls
30 lines (25 loc) · 954 Bytes
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
# https://docs.github.com/en/actions
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python Unit Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# Overall repo level requirements:
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Our library requirements:
pip install -r python/lib/requirements.txt
- name: Test with unittest
run: |
PYTHONPATH="$PYTHONPATH:./python:./python/ppt:./python/tutorials" python -m unittest discover -v -s ./python