-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 901 Bytes
/
python-tests.yaml
File metadata and controls
40 lines (33 loc) · 901 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
31
32
33
34
35
36
37
38
39
40
name: PyAres Unit Tests
on:
push:
branches:
- Develop
pull_request:
branches:
- Develop
jobs:
build-and-test:
runs-on: ubuntu-latest
# Optional: Test across multiple Python versions to ensure compatibility
strategy:
matrix:
python-version: ["3.10"]
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
env:
PYARES_PACKAGE_VERSION: "0.0.1"
run: |
python -m pip install --upgrade pip
pip install -e .
pip install grpcio grpcio-tools protobuf pytest
- name: Run Tests
run: |
# This discovers all files starting with 'test_' in the 'tests' directory
# and runs them.
pytest -v tests/