radicale/.github/workflows/test.yml

51 lines
1.5 KiB
YAML
Raw Normal View History

2020-02-25 17:27:25 +01:00
name: Test
2020-02-27 19:11:28 +01:00
on: [push, pull_request]
2020-02-25 17:27:25 +01:00
jobs:
test:
2020-02-25 17:27:25 +01:00
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2022-07-03 12:33:07 +02:00
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', pypy-3.7, pypy-3.8, pypy-3.9]
2022-02-01 19:07:54 +01:00
exclude:
- os: windows-latest
2022-07-03 12:33:07 +02:00
python-version: pypy-3.7
2022-02-01 19:07:54 +01:00
- os: windows-latest
2022-07-03 12:33:07 +02:00
python-version: pypy-3.8
2022-07-03 12:29:02 +02:00
- os: windows-latest
2022-07-03 12:33:07 +02:00
python-version: pypy-3.9
2022-02-01 15:47:17 +01:00
runs-on: ${{ matrix.os }}
2020-02-25 17:27:25 +01:00
steps:
- uses: actions/checkout@v2
2020-07-23 19:11:34 +02:00
- uses: actions/setup-python@v2
2020-02-25 17:27:25 +01:00
with:
python-version: ${{ matrix.python-version }}
2022-07-03 12:37:54 +02:00
- name: Install Test dependencies
2022-07-03 12:28:47 +02:00
run: pip install tox
- name: Test
run: tox
2022-07-03 12:37:54 +02:00
- name: Install Coveralls
2022-07-03 12:28:47 +02:00
if: github.event_name == 'push'
run: pip install coveralls
- name: Upload coverage to Coveralls
2020-05-19 04:32:52 +02:00
if: github.event_name == 'push'
2020-02-25 19:32:50 +01:00
env:
COVERALLS_PARALLEL: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-07-03 12:28:47 +02:00
run: coveralls --service=github
2020-03-01 00:25:41 +01:00
coveralls-finish:
needs: test
2020-05-19 04:32:52 +02:00
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
2020-07-23 19:11:34 +02:00
- uses: actions/setup-python@v2
2020-02-29 20:33:44 +01:00
with:
python-version: 3.x
2022-07-03 12:37:54 +02:00
- name: Install Coveralls
2022-07-03 12:28:47 +02:00
run: pip install coveralls
- name: Finish Coveralls parallel builds
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-07-03 12:28:47 +02:00
run: coveralls --service=github --finish