.github/workflows: update actions

Newer deps and uv instead of pip.
This commit is contained in:
Alan Orth 2025-01-31 11:50:09 +03:00
parent c434669354
commit c15a68f2d1
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -15,17 +15,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Set up Python 3.10 - name: Install uv
uses: actions/setup-python@v2 uses: astral-sh/setup-uv@v5
with: with:
python-version: '3.10' version: 'latest'
- name: Install dependencies - run: uv sync
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names