Set up a full local test infrastructure for testing the CLI #187
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python cryoet_data_portal build | |
on: | |
pull_request: | |
paths: | |
- "client/python/**" | |
- ".github/workflows/**" # Re-run if a workflow is modified - useful to test workflow changes in PRs | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build_python_wheels: | |
name: Build Python wheel and sdist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install deps | |
run: | | |
python -m pip install -U pip setuptools build | |
- name: Build | |
run: python -m build | |
working-directory: client/python/cryoet_data_portal/ | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: client/python/cryoet_data_portal/dist/* |