File tree Expand file tree Collapse file tree 6 files changed +71
-53
lines changed
Expand file tree Collapse file tree 6 files changed +71
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -46,11 +46,16 @@ jobs:
4646 ref : ${{ github.head_ref }}
4747 token : ${{ secrets.WORKFLOW_COMMIT }}
4848
49+ - name : 🔭 Install UV
50+ uses : astral-sh/setup-uv@v5
51+ with :
52+ enable-cache : true
53+ cache-dependency-glob : " **/pyproject.toml"
54+
4955 - name : 🐍 Setup Python
5056 uses : actions/setup-python@v5
5157 with :
5258 python-version : " 3.13"
53- cache : " pip"
5459
5560 - name : 📦 Install Hatch
5661 uses : pypa/hatch@install
Original file line number Diff line number Diff line change 11name : Deploy Documentation
22
33on :
4+ pull_request :
5+ branches : [ "main" ]
46 push :
57 branches : [ "main" ]
68 workflow_dispatch :
@@ -16,20 +18,53 @@ concurrency:
1618
1719jobs :
1820
19- build :
20- name : Build
21- uses : ./.github/workflows/build-docs.yml
21+ build-docs :
22+ name : Build Documentation
23+
24+ runs-on : ubuntu-latest
25+
26+ steps :
27+ - name : 🛎 Checkout
28+ uses : actions/checkout@v4
29+ with :
30+ ref : ${{ github.head_ref }}
31+
32+ - name : 🔭 Install UV
33+ uses : astral-sh/setup-uv@v5
34+ with :
35+ enable-cache : true
36+ cache-dependency-glob : " **/pyproject.toml"
37+
38+ - name : 🐍 Setup Python
39+ uses : actions/setup-python@v5
40+ with :
41+ python-version : " 3.13"
42+
43+ - name : 📦 Install Hatch
44+ uses : pypa/hatch@install
45+
46+ - name : 🔨 Build Documentation
47+ run : hatch -e docs run build
48+
49+ # Upload artifact on main.
50+ - name : ⬆️ Upload Artifacts
51+ if : github.ref == 'refs/heads/main'
52+ uses : actions/upload-pages-artifact@v3
53+ with :
54+ path : " site"
2255
2356 deploy :
2457 name : Deploy Documentation
25-
26- needs : build
58+
59+ runs-on : ubuntu-latest
60+
61+ if : github.ref == 'refs/heads/main'
2762
2863 environment :
2964 name : github-pages
3065 url : ${{ steps.deployment.outputs.page_url }}
31-
32- runs-on : ubuntu-latest
66+
67+ needs : build-docs
3368
3469 steps :
3570
Original file line number Diff line number Diff line change @@ -25,11 +25,16 @@ jobs:
2525 with :
2626 ref : ${{ github.head_ref }}
2727
28+ - name : 🔭 Install UV
29+ uses : astral-sh/setup-uv@v5
30+ with :
31+ enable-cache : true
32+ cache-dependency-glob : " **/pyproject.toml"
33+
2834 - name : 🐍 Setup Python
2935 uses : actions/setup-python@v5
3036 with :
3137 python-version : " 3.13"
32- cache : " pip"
3338
3439 - name : 📦 Install Hatch
3540 uses : pypa/hatch@install
@@ -52,11 +57,16 @@ jobs:
5257 with :
5358 ref : ${{ github.head_ref }}
5459
60+ - name : 🔭 Install UV
61+ uses : astral-sh/setup-uv@v5
62+ with :
63+ enable-cache : true
64+ cache-dependency-glob : " **/pyproject.toml"
65+
5566 - name : 🐍 Setup Python
5667 uses : actions/setup-python@v5
5768 with :
5869 python-version : " 3.13"
59- cache : " pip"
6070
6171 - name : 📦 Install Hatch
6272 uses : pypa/hatch@install
Original file line number Diff line number Diff line change @@ -13,14 +13,16 @@ This section describes:
1313## Installing for Development
1414
15151 . Clone the repository.
16- 2 . Install [ Hatch] ( https://hatch.pypa.io/latest/install/ )
17- 3 . In a terminal, navigate to the repository's root directory and run
16+ 2 . Install [ UV] ( https://docs.astral.sh/uv/#installation )
17+ 3 . Install [ Hatch] ( https://hatch.pypa.io/latest/install/ )
18+ 4 . In a terminal, navigate to the repository's root directory and run
1819
1920 ``` bash
2021 hatch shell
2122 ```
2223
23- This will create a virtual environment, install Python 13 (if not found), and install the package in editable mode.
24+ This will create a virtual environment, install the latest Python for this project (if not found), and install the
25+ package in editable mode.
2426
2527If you encounter any dependency issues (particularly with ` aiohttp ` ), try installing the latest Microsoft Visual C++
2628(MSVC v143+ x86/64) and the Windows SDK (10/11)
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ path = "src/ephys_link/__about__.py"
5959exclude = [" /.github" , " /.idea" , " /docs" ]
6060
6161[tool .hatch .envs .default ]
62- python = " 3.13.1"
62+ installer = " uv"
63+ python = " 3.13"
6364dependencies = [
6465 " pyinstaller==6.11.1" ,
6566 " basedpyright==1.23.1" ,
@@ -71,11 +72,12 @@ check = "basedpyright"
7172check-watched = " basedpyright --watch"
7273
7374[tool .hatch .envs .docs ]
74- python = " 3.13.1"
75+ installer = " uv"
76+ python = " 3.13"
7577skip-install = true
7678dependencies = [
77- " mkdocs-material==9.5.49 " ,
78- " mkdocstrings-python==1.13.0 " ,
79+ " mkdocs-material==9.6.3 " ,
80+ " mkdocstrings-python==1.14.6 " ,
7981 " mkdocs-gen-files==0.5.0" ,
8082 " mkdocs-literate-nav==0.6.1" ,
8183 " mkdocs-section-index==0.3.9"
You can’t perform that action at this time.
0 commit comments