44 push :
55 branches : ["main"]
66 pull_request :
7- branches : ["main"]
7+ branches : ["main", "1.x" ]
88 workflow_dispatch :
99
1010jobs :
1111 tests :
12- name : " Python ${{ matrix.python-version }} on ${{ matrix.os }}"
12+ name : Python ${{ matrix.python-version }} on ${{ matrix.os }}
1313 runs-on : ${{ matrix.os }}
1414
1515 strategy :
@@ -25,36 +25,40 @@ jobs:
2525 python-version : " 3.7"
2626
2727 steps :
28- - uses : " actions/checkout@v3"
29- - uses : " actions/setup-python@v4"
28+ - uses : actions/checkout@v3
29+ - uses : actions/setup-python@v4
3030 with :
31- python-version : " ${{ matrix.python-version }}"
32- - name : " Install dependencies"
31+ python-version : ${{ matrix.python-version }}
32+ - name : Install dependencies
3333 run : |
3434 python -VV
3535 python -m pip install -r requirements-dev.txt
3636
37- - name : " Run tests for ${{ matrix.python-version }} on ${{ matrix.os }}"
37+ - name : Run tests for ${{ matrix.python-version }} on ${{ matrix.os }}
3838 run : python -m pytest
3939
4040 - name : Upload coverage to Codecov
41- uses : " codecov/codecov-action@v3"
41+ uses : codecov/codecov-action@v3
42+ with :
43+ token : ${{ secrets.CODECOV_TOKEN }}
4244
4345 tests-27 :
44- name : " Python 2.7 on ubuntu-20.04"
46+ name : Python 2.7 on ubuntu-20.04
4547 runs-on : ubuntu-20.04
4648 container :
4749 image : python:2.7-buster
4850
4951 steps :
50- - uses : " actions/checkout@v3"
51- - name : " Install dependencies"
52+ - uses : actions/checkout@v3
53+ - name : Install dependencies
5254 run : |
5355 python -VV
5456 python -m pip install -r requirements-dev.txt
5557
56- - name : " Run tests for Python 2.7 on ubuntu-20.04"
58+ - name : Run tests for Python 2.7 on ubuntu-20.04
5759 run : python -m pytest
5860
5961 - name : Upload coverage to Codecov
60- uses : " codecov/codecov-action@v3"
62+ uses : codecov/codecov-action@v3
63+ with :
64+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments