Skip to content

Commit

Permalink
Fixed more uv run workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 14, 2024
1 parent cbf10f2 commit d829276
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
uv sync -p 3.12 --group dev --group test
- name: Test
run: pytest --cov-report=xml
run: uv run pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand All @@ -60,37 +60,31 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
ref: ${{ github.head_ref }}

- uses: actions/setup-python@v5
- uses: ./.github/actions/setup-python-and-git
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
python-version: "3.12"

- name: Install requirements
shell: bash
run: |
python -m pip install --disable-pip-version-check --no-python-version-warning build
python -m pip install --disable-pip-version-check --no-python-version-warning -e .
uv sync -p 3.12 --group dev
- name: Set dev version
shell: bash
run: |
export PR_NUMBER=$(gh pr view --json number -q .number || echo "")
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
echo "::notice::PR_NUMBER is: ${PR_NUMBER}"
bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v
env:
GH_TOKEN: ${{ secrets.PAT }}
uv run bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v
- name: Package
shell: bash
run: |
python -m build
uv build
- name: Upload package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

0 comments on commit d829276

Please # to comment.