-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.23 KB
/
python-build-tools.yml
File metadata and controls
50 lines (41 loc) · 1.23 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
43
44
45
46
47
48
49
50
# This workflow runs Python tests for the build_tools module
# Separate from the .NET tests to keep concerns isolated
name: Python Build Tools
on:
push:
branches: [ "mainline" ]
paths:
- 'build_tools/**'
- '.github/workflows/python-build-tools.yml'
- '!build_tools/**/*.md'
pull_request:
branches: [ "mainline" ]
paths:
- 'build_tools/**'
- '.github/workflows/python-build-tools.yml'
- '!build_tools/**/*.md'
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.12"]
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 dependencies
run: |
python -m pip install --upgrade pip
# Install sharpy_auto_builder as editable package
pip install -e "build_tools/sharpy_auto_builder[dev]"
- name: Run tests with pytest
env:
# Add repo root to PYTHONPATH to support 'from build_tools.' imports
PYTHONPATH: ${{ github.workspace }}
run: |
python -m pytest build_tools/tests/ -v --tb=short