Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenglong-MS committed Oct 10, 2024
1 parent d4d8d2f commit 9e89425
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Run yarn install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- name: Build yarn build
uses: borales/actions-yarn@v4
with:
cmd: build
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run build
run: yarn build
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
Expand All @@ -37,6 +34,11 @@ jobs:
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install build
- name: Lint with flake8
- name: Build python artifact
run: |
python -m build
python -m build
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist

0 comments on commit 9e89425

Please sign in to comment.