Readme #28
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: Test Python | |
on: [push, pull_request] | |
jobs: | |
test_python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ['3.7', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.12 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Install go dependencies | |
run: go get github.com/keller-mark/esbuild-py | |
# (just so that the dev dependencies are available for the build step) | |
- name: Install 1 | |
run: pip install .[dev] | |
- name: Build package | |
run: python -m build | |
- name: Install 2 (non-editable) | |
run: pip install . | |
- name: Run unit tests | |
run: pytest |