diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a762b624..b15f7a31 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,33 +1,21 @@ -name: rosdistro-ci +--- +name: Run tests -on: +on: # yamllint disable-line rule:truthy push: - branches: [master] + branches: ['master'] pull_request: jobs: - build: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - python: ['3.7', '3.8', '3.9', '3.10'] - include: - - os: ubuntu-18.04 - python: '2.7' - - os: ubuntu-18.04 - python: '3.6' - name: rosdistro tests - runs-on: ${{matrix.os}} - + pytest: + uses: ros-infrastructure/ci/.github/workflows/pytest.yaml@main + with: + matrix-filter: del(.matrix.os[] | select(contains("windows"))) + yamllint: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{matrix.python}} - uses: actions/setup-python@v2 - with: - python-version: ${{matrix.python}} - - name: Install dependencies - run: | - python -m pip install -U -e .[test] pytest-cov -c constraints.txt - - name: Run tests - run: | - python -m pytest test --cov + - uses: actions/checkout@v4 + - run: >- + yamllint . + -f github + -d '{extends: default, ignore: [test/files/foo/*.yaml]}'