Skip to content

Commit 8e7e86e

Browse files
authored
Merge pull request #77 from QuEraComputing/switch-to-uv
Upgrading to bloqade-analog.
2 parents cd720a5 + 76d940e commit 8e7e86e

File tree

75 files changed

+4447
-4378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4447
-4378
lines changed
Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
1-
name: Documentation(Deploy)
1+
name: Deploy Devopment Branch Docs
22
on:
33
push:
44
branches:
55
- main
66

7-
schedule: # run every week
8-
- cron: '0 0 * * 0'
9-
107
concurrency:
118
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
129
cancel-in-progress: true
1310

14-
# See: https://github.com/pdm-project/pdm/issues/1879
15-
env:
16-
PDM_DEPS: 'urllib3<2'
17-
1811
jobs:
1912
documentation:
20-
name: Deploy documentation
13+
name: Deploy dev documentation
2114
runs-on: ubuntu-latest
2215
steps:
2316
- uses: actions/checkout@v4
2417
with:
2518
fetch-depth: 0
26-
- name: Set up Python
27-
uses: actions/setup-python@v5
28-
with:
29-
python-version: 3.11
30-
- uses: pdm-project/setup-pdm@v4
31-
name: Setup PDM
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v5
3221
with:
33-
python-version: 3.11
34-
- name: Install dependencies
35-
run: pdm install
22+
# Install a specific version of uv.
23+
version: "0.5.1"
24+
enable-cache: true
25+
cache-dependency-glob: "uv.lock"
26+
- name: Install Documentation dependencies
27+
run: uv sync --group doc
3628
- name: Set up build cache
3729
uses: actions/cache@v4
3830
id: cache
@@ -47,11 +39,10 @@ jobs:
4739
run: |
4840
git config --local user.email "github-actions[bot]@users.noreply.github.com"
4941
git config --local user.name "github-actions[bot]"
50-
- name: Depoly documentation
42+
- name: Deploy documentation
5143
env:
5244
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5345
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
5446
run: |
55-
version=$(pdm run python3 -c "import bloqade; print(bloqade.__version__)")
5647
git fetch origin gh-pages --depth=1
57-
pdm run mike deploy --push --update-alias $version latest
48+
uv run mike deploy -p dev

.github/workflows/doc.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Documentation(preview)
1+
name: Documentation (preview)
22
on:
33
pull_request:
44
types:
@@ -10,33 +10,21 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1111
cancel-in-progress: true
1212

13-
# See: https://github.com/pdm-project/pdm/issues/1879
14-
env:
15-
PDM_DEPS: 'urllib3<2'
16-
1713
jobs:
1814
documentation:
1915
name: Deploy preview documentation
2016
runs-on: ubuntu-latest
2117
steps:
22-
- name: Wait for other documentation to deploy
23-
uses: lewagon/wait-on-check-action@v1.3.4
24-
with:
25-
ref: main
26-
check-name: 'Deploy documentation'
27-
repo-token: ${{ secrets.GITHUB_TOKEN }}
28-
wait-interval: 10
2918
- uses: actions/checkout@v4
30-
- name: Set up Python 3.12
31-
uses: actions/setup-python@v5
32-
with:
33-
python-version: 3.12
34-
- uses: pdm-project/setup-pdm@v4
35-
name: Setup PDM
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v5
3621
with:
37-
python-version: 3.12
38-
- name: Install dependencies
39-
run: pdm install
22+
# Install a specific version of uv.
23+
version: "0.5.1"
24+
enable-cache: true
25+
cache-dependency-glob: "uv.lock"
26+
- name: Install Documentation dependencies
27+
run: uv sync --group doc
4028
- name: Set up build cache
4129
uses: actions/cache@v4
4230
id: cache
@@ -48,9 +36,8 @@ jobs:
4836
- name: Depoly documentation
4937
env:
5038
GH_TOKEN: ${{ secrets.GH_TOKEN }}
51-
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
5239
run: |
53-
pdm run doc_build
40+
uv run mkdocs build
5441
- name: Deploy preview
5542
uses: rossjrw/pr-preview-action@v1
5643
with:

.github/workflows/pdm.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: check-yaml
8+
args: ['--unsafe']
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
- repo: https://github.com/psf/black
12+
rev: 25.1.0
13+
hooks:
14+
- id: black
15+
- repo: https://github.com/charliermarsh/ruff-pre-commit
16+
# Ruff version.
17+
rev: "v0.9.2"
18+
hooks:
19+
- id: ruff

data/MIS-UDG-job.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/floquet-emulation.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

data/floquet-job.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/lgt-job.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/multi-qubit-blockaded-job.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/nonequilibrium-dynamics-blockade-job.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)