Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use /tmp as the build output directory #7

Merged
merged 2 commits into from
Aug 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- dist output files are written to `/tmp` instead of into the source `dist/` directory
- *twine* now runs in `--strict` mode.
- All tools are now pinned reliability (and hopefully caching in the future).
- The action now uses `setup-python` itself to enable pinning (and hopefully caching in the future). Currently, Python 3.10 is used.
Expand Down
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ runs:
shell: bash

# Build SDist, then build wheel out of it.
- run: /tmp/baipp/bin/python -m build
- run: /tmp/baipp/bin/python -m build --outdir /tmp/baipp-out
shell: bash
working-directory: ${{ inputs.path }}

# Give user overview over what we've built.
- run: ls -l dist
- run: ls -l /tmp/baipp-out
shell: bash
working-directory: ${{ inputs.path }}

- name: Upload built artifacts.
uses: actions/upload-artifact@v3
with:
name: Packages
path: ${{ inputs.path }}/dist/*
path: /tmp/baipp-out/*

- run: /tmp/baipp/bin/check-wheel-contents dist/*.whl
- run: /tmp/baipp/bin/check-wheel-contents /tmp/baipp-out/*.whl
shell: bash
working-directory: ${{ inputs.path }}

- name: Check PyPI README
shell: bash
working-directory: ${{ inputs.path }}
run: /tmp/baipp/bin/python -m twine check --strict dist/*
run: /tmp/baipp/bin/python -m twine check --strict /tmp/baipp-out/*

- name: Show wheel & SDist contents hierarchically.
shell: bash
working-directory: ${{ inputs.path }}
run: |
cd dist
cd /tmp/baipp-out
mkdir -p out/wheels
/tmp/baipp/bin/python -m wheel unpack --dest out/wheels *.whl
mkdir -p out/sdist
Expand Down