Skip to content

Commit

Permalink
Update uv pip install commands
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Oct 25, 2024
1 parent 928dd45 commit bd8e450
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builddoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install .[docs]
run: uv pip install --group docs
- name: Render the documentation
run: >
sphinx-build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install --upgrade "flake8>=6.0"
run: uv pip install --group lint
- name: Lint with flake8
run: flake8 .

Expand All @@ -79,7 +79,7 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install ".[lint,test]"
run: uv pip install --group types
- name: Type check with mypy
run: mypy

Expand All @@ -99,7 +99,7 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install ".[lint,test]"
run: uv pip install --group types
- name: Type check with pyright
run: pyright

Expand All @@ -119,7 +119,7 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install --upgrade sphinx-lint
run: uv pip install --group lint
- name: Lint documentation with sphinx-lint
run: make doclinter

Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install .[test]
run: |
uv pip install --group test
uv pip install .
- name: Install Docutils ${{ matrix.docutils }}
run: uv pip install --upgrade "docutils~=${{ matrix.docutils }}.0"
- name: Test with pytest
Expand Down Expand Up @@ -192,7 +194,9 @@ jobs:
Invoke-WebRequest -Uri "https://astral.sh/uv/install.ps1"
| Invoke-Expression
- name: Install dependencies
run: uv pip install .[test]
run: |
uv pip install --group test
uv pip install .
- name: Test with pytest
run: python -m pytest -vv --durations 25
env:
Expand Down Expand Up @@ -226,7 +230,9 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install .[test]
run: |
uv pip install --group test
uv pip install .
- name: Install Docutils' HEAD
run: uv pip install "docutils @ git+https://repo.or.cz/docutils.git#subdirectory=docutils"
- name: Test with pytest
Expand Down Expand Up @@ -259,7 +265,8 @@ jobs:
| sh
- name: Install dependencies
run: |
uv pip install .[test] --resolution lowest-direct
uv pip install --group test
uv pip install . --resolution lowest-direct
uv pip install alabaster==1.0.0
- name: Test with pytest
run: python -m pytest -vv --durations 25
Expand Down Expand Up @@ -288,7 +295,9 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install .[test]
run: |
uv pip install --group test
uv pip install .
- name: Test with pytest
run: python -m pytest -vv --durations 25
env:
Expand Down Expand Up @@ -318,7 +327,10 @@ jobs:
"https://astral.sh/uv/install.sh"
| sh
- name: Install dependencies
run: uv pip install .[test] pytest-cov
run: |
uv pip install --group test
uv pip install pytest-cov
uv pip install .
- name: Test with pytest
run: python -m pytest -vv --cov . --cov-append --cov-config pyproject.toml
env:
Expand Down

0 comments on commit bd8e450

Please sign in to comment.