Debian Codegraph @

.github/workflows/ci.yaml

raw
1 name: osrf_pycommon-ci
2
3 on:
4 push:
5 branches: [master]
6 pull_request:
7
8 jobs:
9 build:
10 strategy:
11 matrix:
12 os: [macos-latest, ubuntu-22.04, windows-latest]
13 python: ['3.8', '3.9', '3.10', '3.11', '3.12']
14 include:
15 - os: ubuntu-20.04
16 python: '3.6'
17 name: osrf_pycommon tests
18 runs-on: ${{matrix.os}}
19
20 steps:
21 - uses: actions/checkout@v4
22 - name: Set up Python ${{matrix.python}}
23 uses: actions/setup-python@v5
24 with:
25 python-version: ${{matrix.python}}
26 - name: Install dependencies
27 run: |
28 python -m pip install -U -e .[test] pytest-cov
29 - name: Run tests
30 run: |
31 python -m pytest tests --cov=osrf_pycommon
32 - name: Upload coverage
33 uses: codecov/codecov-action@v5
34 with:
35 token: ${{ secrets.CODECOV_TOKEN }}