fix: fix HTTP calls with raw text input for the R client #3
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: build-python | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ 3.11 ] | |
| max-parallel: 4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Build | |
| working-directory: ./src/gen/python | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt -r test-requirements.txt | |
| - name: Lint | |
| working-directory: ./src/gen/python | |
| run: | | |
| pip install "flake8~=4.0.1" | |
| flake8 . --count --select=E9,F63,F7,F82 --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
| - name: Test | |
| working-directory: ./src/gen/python | |
| run: | | |
| pytest |