Skip to content

Commit

Permalink
build: build web as part of release step
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Jul 29, 2024
1 parent 95cbd77 commit 6e6bcd2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
python -m pip install --upgrade pip
pip install -U -r requirements.txt
- name: Ensure dist build is valid
run: |
mkdir -p dist
python -m build --sdist --wheel --outdir dist/ .
- name: Print version
run: python -m redel --version

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ jobs:
steps:
- uses: actions/checkout@v3

# ===== viz =====
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: viz/package-lock.json

- name: Install dependencies
working-directory: viz
run: npm i

- name: Build web interface
working-directory: viz
run: npm run build

# ===== py =====
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ web = [
[tool.hatch]
version.path = "redel/_version.py"

[tool.hatch.build.hooks.custom]
path = "scripts/hatch_build.py"

[tool.hatch.build.targets.sdist]
exclude = [
"sandbox",
Expand Down
18 changes: 0 additions & 18 deletions scripts/hatch_build.py

This file was deleted.

0 comments on commit 6e6bcd2

Please sign in to comment.