Skip to content

Commit

Permalink
Use uv in CI over pip (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Feb 19, 2024
1 parent 9e076a6 commit a4b5ec9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ jobs:
with:
python-version: "3.12"
- uses: actions/checkout@v4
- name: Install uv
run: python -m pip install uv
- name: Uninstall pip
run: python -m pip uninstall pip -y
- name: Active uv for global env
run: echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
- name: Install self
run: python -m pip install .
run: uv pip install tox-uv@. --reinstall
- name: setup python for test ${{ matrix.py }}
uses: actions/setup-python@v5
with:
Expand All @@ -50,7 +56,7 @@ jobs:
file_handler.write(env)
shell: python
- name: setup test suite
run: tox -vvv --notest
run: tox -vv --notest
- name: run test suite
run: tox --skip-pkg-install

Expand All @@ -70,7 +76,13 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
run: python -m pip install uv
- name: Uninstall pip
run: python -m pip uninstall pip -y
- name: Active uv for global env
run: echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
- name: Install self
run: python -m pip install .
run: uv pip install tox-uv@. --reinstall
- name: run check for ${{ matrix.tox_env }}
run: python -m tox -e ${{ matrix.tox_env }}
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
run: python -m pip install uv
- name: Active uv for global env
run: echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
- name: Install build
run: python -m pip install build
run: uv pip install build[virtualenv]
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down

0 comments on commit a4b5ec9

Please sign in to comment.