@@ -3,7 +3,9 @@ name: CI Build
33
44on :
55 push :
6- branches : [ main, v2 ]
6+ branches :
7+ - main
8+ - v2
79 pull_request :
810
911jobs :
@@ -13,25 +15,29 @@ jobs:
1315 timeout-minutes : 5
1416 strategy :
1517 matrix :
16- python-version : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
18+ python-version : ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
19+ permissions :
20+ contents : read
1721 steps :
18- - uses : actions/checkout@v4
19- - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v5
21- with :
22- python-version : ${{ matrix.python-version }}
23- - name : Install dependencies
24- run : |
25- pip install -U pip
26- pip install -e .
27- pip install -r requirements-dev.txt
28- - name : Run all tests
29- run : |
30- python_version=`python -V`
31- if [ ${python_version:7:3} == "3.12" ]; then
32- pip install -U flake8
33- flake8 slackeventsapi
34- pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
35- else
36- pytest tests
37- fi
22+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+ with :
24+ persist-credentials : false
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
27+ with :
28+ python-version : ${{ matrix.python-version }}
29+ - name : Install dependencies
30+ run : |
31+ pip install -U pip
32+ pip install -e .
33+ pip install -r requirements-dev.txt
34+ - name : Run all tests
35+ run : |
36+ python_version=`python -V`
37+ if [ ${python_version:7:3} == "3.12" ]; then
38+ pip install -U flake8
39+ flake8 slackeventsapi
40+ pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
41+ else
42+ pytest tests
43+ fi
0 commit comments