Uv dependency management #498
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| on: [push, pull_request] | |
| jobs: | |
| mixed_tests: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - 'pypy3.10' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -V | |
| uv sync --group=dev | |
| - name: Run unit tests | |
| run: | | |
| uv run pytest -v tests | |
| - name: Clone VSC repository | |
| run: | | |
| git clone https://github.com/COVESA/vehicle_service_catalog/ | |
| - name: Run simple generator tool on VSC content | |
| run: | | |
| uv run ifexgen vehicle_service_catalog/comfort-service.yml -d simple | |
| - name: Run DTDL template | |
| run: | | |
| uv run ifexgen vehicle_service_catalog/comfort-service.yml -d dtdl > dtdl.out | |
| - name: Run Protobuf template and verify output is correct Proto | |
| run: | | |
| sudo apt install -y protobuf-compiler | |
| uv run ifexgen vehicle_service_catalog/comfort-service.yml -d protobuf > comfort-service.proto | |
| mkdir tmp | |
| protoc --cpp_out=tmp comfort-service.proto | |
| - name: Run BAMM template | |
| run: | | |
| uv run ifexgen vehicle_service_catalog/comfort-service.yml -d sds-bamm > bamm.out | |
| - name: Run D-Bus generator | |
| run: | | |
| uv run ifexgen_dbus vehicle_service_catalog/comfort-service.yml >d-bus.out | |
| cat d-bus.out | |
| - name: Run JSON-Schema generator | |
| run: | | |
| uv run ifex/output_filters/schema/ifex_to_json_schema.py >temp-schema | |
| uv run ifex/output_filters/schema/pretty_print_json.py temp-schema >ifex-core-idl-schema.json | |
| - name: Clone uservices repository | |
| run: | | |
| git clone https://github.com/COVESA/uservices/ | |
| - name: Run protobuf->IFEX translation | |
| run: | | |
| uv run ifexconv_protobuf uservices/src/main/proto/vehicle/chassis/suspension/v1/suspension_topics.proto >suspension_topics.ifex | |
| cat suspension_topics.ifex |