File tree Expand file tree Collapse file tree 4 files changed +26
-32
lines changed Expand file tree Collapse file tree 4 files changed +26
-32
lines changed Original file line number Diff line number Diff line change 1- # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41name : Latest release
52
63env :
@@ -28,16 +25,18 @@ jobs:
2825 uses : actions/setup-python@v5
2926 with :
3027 python-version : ${{ env.DEFAULT_PYTHON }}
31- - name : Install pypa/build
32- run : >-
33- python3 -m
34- pip install
35- build
36- --user
37- - name : Build a binary wheel and a source tarball
38- run : python3 -m build
28+ - name : Prepare poetry
29+ run : |
30+ pip install uv
31+ uv venv --system --seed venv
32+ . venv/bin/activate
33+ uv pip install poetry
34+ - name : Dependencies and build
35+ run : |
36+ . venv/bin/activate
37+ poetry install --no-root
38+ poetry build
3939 - name : Publish distribution 📦 to PyPI
4040 uses : pypa/gh-action-pypi-publish@release/v1
4141 with :
42- password : ${{ secrets.pypi_token }}
4342 skip-existing : true
Original file line number Diff line number Diff line change @@ -30,23 +30,20 @@ jobs:
3030 steps :
3131 - name : Check out committed code
3232 uses : actions/checkout@v4
33- - name : Prepare uv
33+ - name : Prepare poetry
3434 run : |
3535 pip install uv
3636 uv venv --system --seed venv
37- - name : Install pypa/build
38- run : |
3937 . venv/bin/activate
40- uv pip install build
41- - name : Build a binary wheel and a source tarball
38+ uv pip install poetry
39+ - name : Dependencies and build
4240 run : |
4341 . venv/bin/activate
44- . venv/bin/activate
45- python3 -m build
42+ poetry install --no-root
43+ poetry build
4644 - name : Publish distribution 📦 to Test PyPI
4745 uses : pypa/gh-action-pypi-publish@release/v1
4846 continue-on-error : true
4947 with :
50- password : ${{ secrets.testpypi_token }}
5148 repository-url : https://test.pypi.org/legacy/
5249 skip-existing : true
Original file line number Diff line number Diff line change @@ -40,16 +40,16 @@ repos:
4040 - --quiet-level=2
4141 exclude_types : [csv, json]
4242 exclude : ^userdata/|^fixtures/
43- - repo : https://github.com/PyCQA/bandit
44- rev : 1.8.5
45- hooks :
46- - id : bandit
47- name : " Bandit checking"
48- args :
49- - --quiet
50- - --format=custom
51- - --configfile=tests/bandit.yaml
52- files : ^(airos|tests)/.+\.py$
43+ # - repo: https://github.com/PyCQA/bandit
44+ # rev: 1.8.5
45+ # hooks:
46+ # - id: bandit
47+ # name: "Bandit checking"
48+ # args:
49+ # - --quiet
50+ # - --format=custom
51+ # - --configfile=tests/bandit.yaml
52+ # files: ^(airos|tests)/.+\.py$
5353 - repo : https://github.com/adrienverge/yamllint.git
5454 rev : v1.37.1
5555 hooks :
Original file line number Diff line number Diff line change 11"""Ubiquity AirOS python module."""
2-
3-
You can’t perform that action at this time.
0 commit comments