Skip to content

Commit

Permalink
Refactor devcontainer and workflow configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim-su committed Nov 11, 2024
1 parent 9d5a31e commit a9309c3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "uv sync --all-extras"
"postCreateCommand": "uv sync --group docs"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:

- name: Install dependencies
run: |
uv sync --extra docs
uv sync --group docs
- name: Install make
run: |
sudo apt update
sudo apt install -y make
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --extra testing
run: uv sync

- name: Run tests
run: uv run pytest tests -n $ASYNCORD_TEST_WORKERS
23 changes: 13 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ dependencies = [

dynamic = ["version"]

[project.optional-dependencies]
dev = ["pre-commit>=3.3.2", "ruff>=0.4.4", "gitpython>=3.1.43"]
[dependency-groups]
dev = [
"python-git>=2018.2.1",
"pre-commit>=3.3.2",
"ruff>=0.4.4",
"gitpython>=3.1.43",
]
testing = [
"pytest>=7.3.1",
"pytest-asyncio>=0.19.0,<0.23.0", # 0.23.0 has a bugs with scopes
Expand All @@ -35,6 +40,12 @@ testing = [
]
docs = ["sphinx-material>=0.0.36", "sphinx>=8.0.2"]

[tool.uv.workspace]
members = ["examples/echo", "examples/levels"]

[tool.uv]
default-groups = ["dev", "testing"]

[tool.pdm.version]
source = "call"
getter = "scritps.version:get_version"
Expand Down Expand Up @@ -200,11 +211,3 @@ max-args = 7
[tool.ruff.format]
preview = true
quote-style = "single"

[tool.uv.workspace]
members = ["examples/echo", "examples/levels"]

[dependency-groups]
dev = [
"python-git>=2018.2.1",
]
40 changes: 21 additions & 19 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9309c3

Please sign in to comment.