77 - " **.py"
88 - " .github/**"
99 - " pyproject.toml"
10- - " requirements*"
10+ - " requirements*.txt "
1111
1212defaults :
1313 run :
1414 shell : bash
1515
1616jobs :
1717 Pytest :
18+ name : Test on ${{ matrix.os }} / Python ${{ matrix.python-version }}
1819 runs-on : ${{ matrix.os }}
1920 strategy :
2021 matrix :
@@ -24,35 +25,41 @@ jobs:
2425 OS : ${{ matrix.os }}
2526 PYTHON : ${{ matrix.python-version }}
2627 steps :
27- - uses : actions/checkout@main
28- - name : Set up Python
28+ - name : Checkout repository
29+ uses : actions/checkout@main
30+
31+ - name : Setup Python ${{ matrix.python-version }}
2932 uses : actions/setup-python@main
3033 with :
3134 python-version : ${{ matrix.python-version }}
32- cache : ' pip'
35+ cache : pip
3336 cache-dependency-path : |
3437 requirements.txt
35- requirements-tests.txt
3638 requirements-optional.txt
39+ requirements-tests.txt
40+ pyproject.toml
3741
38- - name : Install rocketpy
39- run : pip install .
40-
41- - name : Test importing rocketpy
42- run : python -c "import sys, rocketpy; print(f'{rocketpy.__name__} running on Python {sys.version}')"
42+ - name : Upgrade pip
43+ run : pip install --upgrade pip
4344
44- - name : Install test dependencies
45+ - name : Install all RocketPy dependencies
4546 run : |
46- pip install -r requirements-tests.txt
47+ # Core + optional dependencies
48+ pip install -r requirements.txt
49+ pip install -r requirements-optional.txt
50+ # Install RocketPy itself with its "all" extras
4751 pip install .[all]
52+ # Test‐only deps
53+ pip install -r requirements-tests.txt
54+
55+ - name : Test importing rocketpy
56+ run : python -c "import sys, rocketpy; print(f'{rocketpy.__name__} running on Python {sys.version}')"
4857
4958 - name : Run Unit Tests
5059 run : pytest tests/unit --cov=rocketpy
5160
5261 - name : Run Documentation Tests
53- run : |
54- pip install numpy --upgrade
55- pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
62+ run : pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
5663
5764 - name : Run Integration Tests
5865 run : pytest tests/integration --cov=rocketpy --cov-append
0 commit comments