Add pip package builder #242
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 | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test-python-bindings: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download libraries | |
uses: ./.github/composite-actions/download-libraries | |
- name: Build pip package and test | |
working-directory: ${{github.workspace}} | |
shell: bash | |
run: | | |
cp test_input_data/WDC_satellites.csv src/python_bindings/ | |
pip install . | |
cd src/python_bindings | |
python test_bindings.py |