Support empy4 together with empy3 #326
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: Run tests | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: ['master'] | |
| pull_request: | |
| workflow_call: | |
| jobs: | |
| pytest: | |
| uses: ros-infrastructure/ci/.github/workflows/pytest.yaml@main | |
| with: | |
| matrix-filter: del(.matrix.os[] | select(contains("windows"))) | |
| # Dedicated job for testing with empy < 4 | |
| pytest-empy-legacy: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13'] | |
| name: Test empy < 4 compatibility (Python ${{ matrix.python-version }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies with empy < 4 | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install 'empy<4' | |
| pip install -e .[test] | |
| - name: Run tests | |
| run: | | |
| python -m pytest test/ -v | |
| yamllint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: yamllint -f github . |