chore(uv): add new way to resolve and install dependencies (#85) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- 'lume/VERSION' | |
branches: | |
- main | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: pip | |
cache-dependency-path: '**/*requirements.txt' | |
- name: Setup Python (uv) | |
run: | # from https://github.com/astral-sh/uv/issues/1386 | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
uv venv .venv | |
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV | |
echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
mkdir -p $(pip cache dir) | |
- name: Install dependencies | |
run: | | |
uv pip install -e . | |
lume -install | |
- name: Coverage | |
run: lume -coverage | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: output/coverage/cobertura_coverage.xml | |
name: lume | |
fail_ci_if_error: true |