|
1 | | -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
2 | | -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions |
3 | | - |
4 | | -name: Python package with external dependencies |
| 1 | +name: External integrations |
5 | 2 |
|
6 | 3 | on: |
7 | 4 | push: |
8 | | - branches: [ main ] |
| 5 | + branches: [main] |
9 | 6 | pull_request: |
10 | | - branches: [ main ] |
| 7 | + branches: [main] |
11 | 8 |
|
12 | 9 | jobs: |
13 | | - build: |
14 | | - |
| 10 | + external: |
15 | 11 | runs-on: ubuntu-latest |
16 | 12 | steps: |
17 | | - - uses: actions/checkout@v4 |
18 | | - - name: Set up Python |
19 | | - uses: actions/setup-python@v5 |
20 | | - with: |
21 | | - python-version: "3.11" |
22 | | - - name: Install package and dev dependencies |
23 | | - run: | |
24 | | - python -m pip install --upgrade pip |
25 | | - pip install -e . |
26 | | - pip install -r requirements-dev.txt |
27 | | - - name: Test TensorBoard output |
28 | | - run: | |
29 | | - pip install tensorflow tensorboard |
30 | | - pytest tests/external_test_tensorboard.py |
31 | | - - name: Test Keras input |
32 | | - run: | |
33 | | - pip install keras |
34 | | - pytest tests/external_test_keras.py |
35 | | - - name: Test PyTorch Ignite input |
36 | | - run: | |
37 | | - pip install pytorch-ignite |
38 | | - pytest tests/external_test_pytorch_ignite.py |
39 | | - - name: Test Poutyne input |
40 | | - run: | |
41 | | - pip install poutyne |
42 | | - pytest tests/external_test_poutyne.py |
43 | | - - name: Test Jupyter Notebook matplotlib output |
44 | | - run: | |
45 | | - pytest tests/external_test_examples.py |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: astral-sh/setup-uv@v4 |
| 15 | + with: |
| 16 | + enable-cache: true |
| 17 | + - run: uv sync --group dev |
| 18 | + - name: TensorBoard |
| 19 | + run: uv run --with tensorflow --with tensorboard pytest tests/external_test_tensorboard.py |
| 20 | + - name: Keras |
| 21 | + run: uv run --with keras --with tensorflow pytest tests/external_test_keras.py |
| 22 | + - name: PyTorch Ignite |
| 23 | + run: uv run --with pytorch-ignite pytest tests/external_test_pytorch_ignite.py |
| 24 | + - name: Poutyne |
| 25 | + run: uv run --with poutyne pytest tests/external_test_poutyne.py |
| 26 | + - name: Notebook examples |
| 27 | + run: uv run pytest tests/external_test_examples.py |
0 commit comments