Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/va-h/devcontainers-features/uv:1": {
"shellautocompletion": true
}
},

// Features to add to the dev container. More info: https://containers.dev/features.
Expand All @@ -25,7 +28,8 @@
"workspaceFolder": "${localWorkspaceFolder}",
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
"mounts": [
"source=${localEnv:HOME}/.cache/pip,target=/home/vscode/.cache/pip,type=bind"
"source=${localEnv:HOME}/.cache/pip,target=/home/vscode/.cache/pip,type=bind",
"source=${localEnv:HOME}/.cache/uv,target=/home/vscode/.cache/uv,type=bind"
],
"customizations": {
"vscode": {
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/medcat-v2-tutorials_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install dependencies
run: |
pip install -U pip
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/medcat-v2_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ defaults:
working-directory: ./medcat-v2
jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
max-parallel: 4

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install uv for Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "medcat-v2/uv.lock"
- name: Install the project
run: |
uv sync --all-extras --dev
Expand All @@ -43,3 +43,5 @@ jobs:
- name: Backwards compatibility
run: |
uv run bash tests/backwards_compatibility/check_backwards_compatibility.sh
- name: Minimize uv cache
run: uv cache prune --ci
1 change: 0 additions & 1 deletion medcat-v2/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ tmp_*
nohup.out
tmp.py
.DS_Store
*.lock
*.egg*

# models files
Expand Down
Loading