Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yakimka committed Oct 11, 2024
1 parent 72b97f6 commit 919d155
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/workflow-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ jobs:
run: |
docker run -v $(pwd):/code -w /code --rm -d --name=uv-img ${UV_DOCKER_IMAGE} sleep infinity
- run: echo "PROJECT_VERSION=$(docker exec uv-img uv version --short)" >> $GITHUB_ENV
- run: |
docker image ls
docker ps
docker exec uv-img uv version
- run:
echo "PROJECT_VERSION=$(docker exec uv-img grep -m 1 '^version' pyproject.toml | cut -d '"' -f2)" >> $GITHUB_ENV

- name: Check if tag version matches project version
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -214,5 +219,4 @@ jobs:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
run: |
docker exec uv-img rm dist/requirements.txt
docker exec uv-img uv publish --token=$PYPI_TOKEN
docker exec uv-img uv publish dist/*.* --token=$PYPI_TOKEN
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ package: ## Run packages (dependencies) checks
.PHONY: build-package
build-package: ## Build package
$(RUN) uv build $(args)
$(RUN) uv export --format=requirements-txt --output-file=dist/requirements.txt --locked --no-dev --no-emit-project
$(RUN) uv export --format=requirements-txt --output-file=dist/requirements --locked --no-dev --no-emit-project

.PHONY: checks
checks: lint package test ## Run linting and tests
Expand Down
3 changes: 1 addition & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ run_ci () {
uv sync
uv run pre-commit run --all-files
uv run mypy
uv check
uv run pip check
uv run pytest --cov=tests --cov=picodi --cov-report=xml --junitxml=jcoverage.xml
uv run pytest --dead-fixtures
uv build
uv export --format=requirements-txt --output-file=dist/requirements.txt --locked --no-dev --no-emit-project
uv export --format=requirements-txt --output-file=dist/requirements --locked --no-dev --no-emit-project
# print shasum of the built packages
shasum dist/*
# trying to build the docs
Expand Down

0 comments on commit 919d155

Please sign in to comment.