@@ -11,31 +11,30 @@ jobs:
1111 runs-on : " ubuntu-22.04"
1212 strategy :
1313 matrix :
14- python_version : ["3.8", "3.10"]
14+ python_version : ["3.8", "3.10", "3.12" ]
1515 steps :
1616 - name : " Checkout"
17- uses : " actions/checkout@v3 "
17+ uses : " actions/checkout@v5 "
1818 with :
1919 fetch-depth : 10
20- - name : " Setup Python"
21- uses : " actions/setup-python@v4 "
20+ - name : " Set up Python"
21+ uses : " actions/setup-python@v5 "
2222 with :
2323 python-version : " ${{ matrix.python_version }}"
24- cache : " pipenv"
25- cache-dependency-path : " Pipfile.lock"
26- - name : " Install pipenv"
27- run : " pip install pipenv wheel"
28- - name : " Install dependencies"
29- run : " rm -rf $(pipenv --venv) && pipenv --python ${{ matrix.python_version }} install --dev"
24+ - name : " Install uv and set the python version"
25+ uses : " astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57" # v8.0.0
26+ with :
27+ python-version : " ${{ matrix.python-version }}"
28+ version : " 0.11.2"
3029 - name : " Run pyre"
3130 run : |
3231 set -o pipefail
33- pipenv run pyre | tee >(sed 's, ,:,' | awk -F: '{sub(" ", "", $5); print "::error file=" ENVIRON["PWD"] "/" $1 ",line=" $2 ",col=" $3 ",title=" $4 "::" $5}')
32+ uv run --frozen pyre | tee >(sed 's, ,:,' | awk -F: '{sub(" ", "", $5); print "::error file=" ENVIRON["PWD"] "/" $1 ",line=" $2 ",col=" $3 ",title=" $4 "::" $5}')
3433 - name : " Run pytest"
35- run : " PYTHONPATH=. pipenv run pytest"
34+ run : " PYTHONPATH=. uv run --frozen pytest"
3635 - name : " Run pylint"
37- run : " PYTHONPATH=. pipenv run pylint --jobs 0 --score n --msg-template='::{category} file={abspath},line={line},col={column},title={msg_id} {symbol}::{msg}' lightspark"
36+ run : " PYTHONPATH=. uv run --frozen pylint --jobs 0 --score n --msg-template='::{category} file={abspath},line={line},col={column},title={msg_id} {symbol}::{msg}' lightspark"
3837 - name : " Run black"
3938 run : |
4039 set -o pipefail
41- pipenv run black --check --diff . | tee >(pipenv run ../scripts/diff2annotation.py)
40+ uv run --frozen black --check --diff . | tee >(pipenv run ../scripts/diff2annotation.py)
0 commit comments