radicale/.github/workflows/test.yml

43 lines
1.2 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
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, '3.9.0-alpha - 3.9', pypy3]
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 }}
- name: Install from source
run: python -m pip install --editable .[test,bcrypt]
- name: Run tests
run: python setup.py test
- 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 }}
2020-02-25 19:32:50 +01:00
run: |
python -m pip install coveralls
python -m coveralls
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
- name: Finish Coveralls parallel builds
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m pip install coveralls
python -m coveralls --finish