11name : Tests
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ types : ["opened", "synchronize", "reopened"]
9+ create :
10+
411
512jobs :
613 pre-commit :
916
1017 steps :
1118 - name : Checkout to master
12- uses : actions/checkout@master
19+ uses : actions/checkout@v3
1320
1421 - name : Setup python
15- uses : actions/setup-python@v1
22+ uses : actions/setup-python@v3
1623 with :
17- python-version : ' 3.8 '
24+ python-version : ' 3.x '
1825 architecture : ' x64'
1926
2027 - name : Pre-Commit Checks
@@ -33,13 +40,13 @@ jobs:
3340 runs-on : ubuntu-latest
3441 strategy :
3542 matrix :
36- python-version : [ '3.5', '3.6', '3.7', '3.8' ]
43+ python-version : [ "3.8", "3.9", "3.10" ]
3744 steps :
3845 - name : Checkout to master
39- uses : actions/checkout@master
46+ uses : actions/checkout@v3
4047
4148 - name : Setup Python-${{ matrix.python-version }}
42- uses : actions/setup-python@v1
49+ uses : actions/setup-python@v3
4350 with :
4451 python-version : ${{ matrix.python-version }}
4552 architecture : x64
@@ -70,12 +77,12 @@ jobs:
7077
7178 steps :
7279 - name : Checkout to master
73- uses : actions/checkout@master
80+ uses : actions/checkout@v3
7481
7582 - name : Setup python
76- uses : actions/setup-python@v1
83+ uses : actions/setup-python@v3
7784 with :
78- python-version : ' 3.8 '
85+ python-version : ' 3.x '
7986 architecture : ' x64'
8087
8188 - name : Setup test environment
0 commit comments