1- # NOTE: This file is auto generated by OpenAPI Generator.
2- # URL: https://openapi-generator.tech
3- #
4- # ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5-
61name : koyeb Python package
72
83on : [push, pull_request]
94
105jobs :
116 build :
12-
137 runs-on : ubuntu-latest
148 strategy :
159 matrix :
16- python-version : ["3.8", "3. 9", "3.10", "3.11", "3.12", "3.13"]
10+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
1711
1812 steps :
1913 - uses : actions/checkout@v3
@@ -23,18 +17,16 @@ jobs:
2317 python-version : ${{ matrix.python-version }}
2418 - name : Install dependencies
2519 run : |
26- python -m pip install --upgrade pip
20+ python -m pip install --upgrade uv
2721 pip install flake8 pytest
28- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29- if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
3022 - name : Lint with flake8
3123 # disable for now, as there are many pydantic errors
3224 if : false
3325 run : |
3426 # stop the build if there are Python syntax errors or undefined names
35- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27+ uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3628 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
29+ uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3830 - name : Test with pytest
3931 run : |
40- pytest
32+ uv run pytest
0 commit comments