-
Notifications
You must be signed in to change notification settings - Fork 42
51 lines (48 loc) · 1.26 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: test
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
test-cov-py:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.8", "3.9", "3.10", "3.11", "pypy3.9", "pypy3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Run tox -e py
run: |
python -m pip install tox
tox -e py
- name: Coveralls
run: |
python -m pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python }}-${{ matrix.os }}
COVERALLS_PARALLEL: true
coveralls-py:
if: "github.repository == 'btclib-org/btclib' && github.base_ref == 'master'"
needs: test-cov-py
runs-on: ubuntu-latest
steps:
- name: Upload to coveralls.io
run: |
python -m pip install coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}