Skip to content

Commit 3398169

Browse files
committed
[ci] move deploy to a separate job
1 parent 759ebab commit 3398169

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/run_test.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,27 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
pip install coverage numpy setuptools build
35+
pip install coverage numpy setuptools
3636
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3737
- name: Build, run test and coverage
3838
run: |
39-
rm -rf dist/*
4039
./coverage_test.sh
40+
41+
deploy:
42+
name: Upload bjdata wheels
43+
runs-on: ubuntu-22.04
44+
needs: build
45+
steps:
46+
- name: Checkout repo
47+
uses: actions/checkout@v3
48+
with:
49+
submodules: 'recursive'
50+
- name: Install build
51+
run: python3 -m pip install --upgrade build
4152
- name: Build wheel
42-
run: python3 -m build
43-
- name: Build wheel
44-
run: rm -rf dist/bjdata-*.whl
53+
run: |
54+
python3 -m build
55+
rm -rf dist/bjdata-*.whl
4556
- name: Check If the Build Version Exists on PyPI
4657
id: perform_pypi_upload_check
4758
shell: bash

0 commit comments

Comments
 (0)