-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (38 loc) · 1.11 KB
/
python_unit_tests.yaml
File metadata and controls
42 lines (38 loc) · 1.11 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
41
42
name: Python Unit Tests
on:
pull_request:
paths:
- '**.py'
- '.github/workflows/python_unit_tests.yaml'
push:
paths:
- '**.py'
- '.github/workflows/python_unit_tests.yaml'
branches: [main, 'releases/**']
workflow_dispatch:
permissions: read-all
jobs:
python_unit_tests:
name: python_unit_tests
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.14'
- name: Install dependencies
run: |
# We only have 2 external dependencies other than pytest for now, so
# list them here
# If this changes, we may want to switch to a dependencies file of
# some format
python -m pip install --upgrade pip
pip install pytest networkx PyYAML
- name: Test with pytest
run: |
# Setup git for git_bdiff and get_git_sources testing
git config --global user.name 'Testing'
git config --global user.email 'Testing'
pytest -vv