mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-12-05 09:28:26 +09:00
use uv in ci
This commit is contained in:
1 parent
bf0940693c
commit
e00a76f900
2 files changed
+33
-32
No files matched your search
@@ -7,30 +7,25 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ "3.10" ]
|
||||
python-version: [ "3.12" ]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v3
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies (Windows)
|
||||
if: matrix.TARGET == 'Windows'
|
||||
- name: Install uv
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements-windows.txt
|
||||
#pip install -e .
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install dependencies (others)
|
||||
if: matrix.TARGET != 'Windows'
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements-linux.txt
|
||||
#pip install -e .
|
||||
- name: Sync dependencies from pyproject.toml
|
||||
run: uv sync
|
||||
|
||||
- name: Run pytest
|
||||
run: python -m pytest --import-mode=append pytest/
|
||||
run: uv run pytest --import-mode=append pytest/
|
||||
|
||||
Reference in new issue
Block a user