Skip to content

Commit f4e1807

Browse files
Aleksey Petrunnikaleksey925
authored andcommitted
CI/CD improvement
1 parent 32b1caf commit f4e1807

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Tests
22

3-
on: push
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
push:
8+
branches:
9+
- 'master'
410

511
env:
612
POETRY_VERSION: "1.1.13"
@@ -36,8 +42,6 @@ jobs:
3642
matrix:
3743
py_version: [ "3.8", "3.9", "3.10" ]
3844
os: [ ubuntu-22.04 ]
39-
env:
40-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
4145
runs-on: "${{ matrix.os }}"
4246
steps:
4347
- uses: actions/checkout@v3
@@ -67,7 +71,7 @@ jobs:
6771
fi
6872
- name: Upload coverage reports to Codecov
6973
uses: codecov/codecov-action@v3
70-
if: matrix.os == 'ubuntu-22.04' && matrix.py_version == '3.8' && env.BRANCH_NAME == 'master'
74+
if: matrix.os == 'ubuntu-22.04' && matrix.py_version == '3.8'
7175
with:
7276
token: ${{ secrets.CODECOV_TOKEN }}
7377
fail_ci_if_error: true

0 commit comments

Comments
 (0)