11name : Test
22on :
3- - pull_request
4- - push
3+ pull_request :
4+ types : [ready_for_review]
55
66jobs :
77 test :
88 runs-on : ${{ matrix.os }}
99 strategy :
1010 matrix :
11- os : [ubuntu-latest, macOS-latest]
12- python-version : ['3.8', '3.9', '3.10']
11+ os : [ ubuntu-latest, macOS-latest]
12+ python-version : [ '3.8', '3.9', '3.10' ]
1313
1414 steps :
1515 - uses : actions/checkout@v2
16+
1617 - name : Set up Python ${{ matrix.python-version }}
18+ id : setup-python
1719 uses : actions/setup-python@v2
1820 with :
1921 python-version : ${{ matrix.python-version }}
22+
2023 - name : Python version
2124 run : python -c "import sys; print(sys.version)"
2225
@@ -33,20 +36,15 @@ jobs:
3336 uses : actions/cache@v2
3437 id : cache-dependencies
3538 with :
36- path : ./.venv
37- key : ${{ matrix.os }}-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
38- restore-keys : |
39- ${{ matrix.os }}-pipenv
39+ path : .venv
40+ key : ${{ matrix.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
4041
41- # install dependencies
42+ # install dependencies
4243 - name : Install dependencies
4344 if : steps.cache-dependencies.outputs.cache-hit != 'true'
4445 run : |
4546 pipenv install --dev --verbose
4647 pipenv install types-requests --dev
47-
48- # Run bash script
49- - name : run Bash script
50- run : pipenv run bash ./.github/check.sh
51-
52-
48+ # Run bash script
49+ - name : run Bash script
50+ run : pipenv run bash ./.github/check.sh
0 commit comments