@@ -11,55 +11,53 @@ jobs:
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- python-version : [' 3.9', ' 3.10', ' 3.11' ]
14+ python-version : [" 3.9", " 3.10", " 3.11" ]
1515 os : [ubuntu-latest, macOS-latest, windows-latest]
1616
1717 steps :
18- - name : Checkout
19- uses : actions/checkout@v2
18+ - name : Checkout
19+ uses : actions/checkout@v4
2020
21- - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup-python@v2
23- with :
24- python-version : ${{ matrix.python-version }}
21+ - name : Set up Python ${{ matrix.python-version }}
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : ${{ matrix.python-version }}
2525
26- - name : Install dependencies
27- run : |
28- pip install -r requirements.txt
29- pip install -r requirements_dev.txt
30- pip install coveralls
31- pip install pytest
32- pip install pytest-benchmark
26+ - name : Install dependencies
27+ run : |
28+ pip install -r requirements.txt
29+ pip install -r requirements_dev.txt
30+ pip install coveralls
3331
34- - name : Run tests
35- run : coverage run -m unittest discover -s tests -t tests
32+ - name : Run tests
33+ run : coverage run -m unittest discover -s tests -t tests
3634
37- - name : Run benchmark
38- run : python3 -m pytest
39- --benchmark-verbose
40- --benchmark-columns=mean,stddev,iqr,ops,rounds
41- tests/benchmarks/benchmark_model.py
42- tests/benchmarks/benchmark_management_api.py
43- tests/benchmarks/benchmark_role_manager.py
35+ - name : Run benchmark
36+ run : python3 -m pytest
37+ --benchmark-verbose
38+ --benchmark-columns=mean,stddev,iqr,ops,rounds
39+ tests/benchmarks/benchmark_model.py
40+ tests/benchmarks/benchmark_management_api.py
41+ tests/benchmarks/benchmark_role_manager.py
4442
45- - name : Upload coverage data to coveralls.io
46- run : coveralls --service=github
47- env :
48- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49- COVERALLS_FLAG_NAME : ${{ matrix.os }} - ${{ matrix.python-version }}
50- COVERALLS_PARALLEL : true
43+ - name : Upload coverage data to coveralls.io
44+ run : coveralls --service=github
45+ env :
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ COVERALLS_FLAG_NAME : ${{ matrix.os }} - ${{ matrix.python-version }}
48+ COVERALLS_PARALLEL : true
5149
5250 lint :
5351 name : Run Linters
5452 runs-on : ubuntu-latest
5553 steps :
5654 - name : Checkout
57- uses : actions/checkout@v2
55+ uses : actions/checkout@v4
5856 with :
5957 fetch-depth : 0
6058
6159 - name : Super-Linter
62- uses : github /super-linter@v4.9 .2
60+ uses : super-linter /super-linter@v5.7 .2
6361 env :
6462 VALIDATE_ALL_CODEBASE : false
6563 VALIDATE_PYTHON_BLACK : true
@@ -74,36 +72,36 @@ jobs:
7472 runs-on : ubuntu-latest
7573 container : python:3-slim
7674 steps :
77- - name : Finished
78- run : |
79- pip3 install --upgrade coveralls
80- coveralls --finish
81- env :
82- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75+ - name : Finished
76+ run : |
77+ pip3 install --upgrade coveralls
78+ coveralls --finish
79+ env :
80+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8381
8482 release :
8583 name : Release
8684 runs-on : ubuntu-latest
87- needs : [ test, coveralls ]
85+ needs : [test, coveralls]
8886 steps :
8987 - name : Checkout
90- uses : actions/checkout@v2
88+ uses : actions/checkout@v4
9189 with :
9290 fetch-depth : 0
93-
91+
9492 - name : Setup Node.js
95- uses : actions/setup-node@v2
93+ uses : actions/setup-node@v4
9694 with :
97- node-version : ' 18 '
95+ node-version : " 18 "
9896
9997 - name : Setup
10098 run : npm install
101-
99+
102100 - name : Set up python
103- uses : actions/setup-python@v4
101+ uses : actions/setup-python@v5
104102 with :
105103 python-version : 3.11
106-
104+
107105 - name : Release
108106 env :
109107 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments