Skip to content

Commit

Permalink
[CI] Fix workflow paths without a working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
econchick committed Oct 20, 2021
1 parent c8f0b19 commit 6f0a598
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build_upload_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,38 +43,35 @@ jobs:
python -m pip install build virtualenv twine --user
- name: "${{ github.event.inputs.package-name }}: Build wheel & sdist"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
pwd
python -VV
python -m build --sdist --wheel --outdir dist/ .
python -m build --sdist --wheel --outdir ${{ github.event.inputs.package-dir }}/dist/ ${{ github.event.inputs.package-dir }}/
- name: "${{ github.event.inputs.package-name }}: Check Long Description"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m twine check dist/*
python -m twine check ${{ github.event.inputs.package-dir }}/dist/*
- name: "${{ github.event.inputs.package-name }}: Test sdist installation from local build"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m virtualenv sdist-test
source sdist-test/bin/activate
python -m pip install dist/*.tar.gz
python -m pip install ${{ github.event.inputs.package-dir }}/dist/*.tar.gz
python -c 'import ${{ github.event.inputs.package-name }}; print(${{ github.event.inputs.package-name }}.__version__)'
deactivate
- name: "${{ github.event.inputs.package-name }}: Test wheel installation from local build"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m virtualenv wheel-test
source wheel-test/bin/activate
python -m pip install dist/*.whl
python -m pip install ${{ github.event.inputs.package-dir }}/dist/*.whl
python -c 'import ${{ github.event.inputs.package-name }}; print(${{ github.event.inputs.package-name }}.__version__)'
deactivate
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build_upload_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,38 +43,34 @@ jobs:
python -m pip install build virtualenv twine --user
- name: "${{ github.event.inputs.package-name }}: Build wheel & sdist"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m build --sdist --wheel --outdir dist/ .
python -m build --sdist --wheel --outdir ${{ github.event.inputs.package-dir }}/dist/ ${{ github.event.inputs.package-dir }}
- name: "${{ github.event.inputs.package-name }}: Check Long Description"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m twine check dist/*
python -m twine check ${{ github.event.inputs.package-dir }}/dist/*
- name: "${{ github.event.inputs.package-name }}: Test sdist installation from local build"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m virtualenv sdist-test
source sdist-test/bin/activate
python -m pip install dist/*.tar.gz
python -m pip install ${{ github.event.inputs.package-dir }}/dist/*.tar.gz
python -c 'import ${{ github.event.inputs.package-name }}; print(${{ github.event.inputs.package-name }}.__version__)'
deactivate
- name: "${{ github.event.inputs.package-name }}: Test wheel installation from local build"
working-directory: ${{ github.event.inputs.package-dir }}
run: |
set -xe
python -VV
python -m virtualenv wheel-test
source wheel-test/bin/activate
python -m pip install dist/*.whl
python -m pip install ${{ github.event.inputs.package-dir }}/dist/*.whl
python -c 'import ${{ github.event.inputs.package-name }}; print(${{ github.event.inputs.package-name }}.__version__)'
deactivate
Expand Down

0 comments on commit 6f0a598

Please sign in to comment.