Create generalized test script #7
This file contains hidden or 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: Compile Go and run Python | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: 'stable' | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Python dependencies | |
| run: | | |
| pip install pandas | |
| - name: "Test: hello" | |
| run: sh test.sh hello | |
| - name: "Test: primitive" | |
| run: sh test.sh primitive | |
| - name: "Test: arrays" | |
| run: sh test.sh arrays | |
| - name: "Test: string" | |
| run: sh test.sh string | |
| - name: "Test: numpypandas" | |
| run: sh test.sh numpypandas | |
| - name: "Test: alloc" | |
| run: sh test.sh alloc | |
| - name: "Test: structs" | |
| run: sh test.sh structs | |
| - name: "Test: del" | |
| run: sh test.sh del |