Skip to content

Commit

Permalink
Use uv in github actions (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueraft authored Aug 13, 2024
1 parent 0f1c93d commit dbd0ec3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
permissions:
contents: read

env:
UV_SYSTEM_PYTHON: true

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -25,10 +28,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python_version}}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev] --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple
uv pip install -e '.[dev]'
- name: Test with pytest
run: |
pytest
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ file = "LICENSE"
"Homepage" = "https://github.com/FAIRmat-NFDI/nomad-material-processing"
"Bug Tracker" = "https://github.com/FAIRmat-NFDI/nomad-material-processing/issues"

[tool.uv]
index-url = "https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple"

[tool.ruff]
include = ["src/*.py", "tests/*.py"]

Expand Down

0 comments on commit dbd0ec3

Please sign in to comment.