diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6eaf8140..8159e852 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,7 +5,7 @@ on: pull_request: branches: - - '*' + - "*" schedule: # Runs at 05:30 on Mondays @@ -90,12 +90,13 @@ jobs: - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v7 + uses: astral-sh/setup-uv@v10.3.0 with: + activate-environment: "true" python-version: "3.14" - name: Install linting packages - run: pip install -r ./requirements/linting.txt + run: uv pip install -r ./requirements/linting.txt - name: Linting the codebase run: poe linter --output-format=github @@ -115,13 +116,14 @@ jobs: - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v7 + uses: astral-sh/setup-uv@v10.3.0 with: + activate-environment: "true" python-version: ${{ matrix.python-version }} - name: Install packages run: | - pip install ./allure-python-commons \ + uv pip install ./allure-python-commons \ ./allure-python-commons-test \ ./allure-pytest \ pytest==${{ matrix.pytest-version }} \ @@ -149,13 +151,14 @@ jobs: - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v7 + uses: astral-sh/setup-uv@v10.3.0 with: + activate-environment: "true" python-version: ${{ matrix.python-version }} - name: Install packages run: | - pip install ./allure-python-commons \ + uv pip install ./allure-python-commons \ ./allure-python-commons-test \ ./${{ matrix.package }} \ -r ./requirements/testing.txt \ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fb0c8fa0..81b084fb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,14 +16,13 @@ jobs: - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v7 + uses: astral-sh/setup-uv@v10.3.0 with: - python-version: '3.x' + activate-environment: "true" + python-version: "3.14" - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine + run: uv pip install setuptools wheel twine - name: Build and publish env: