| 1 | # NOTE: This file is auto generated by OpenAPI Generator. |
| 2 | # URL: https://openapi-generator.tech |
| 3 | # |
| 4 | # ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
| 5 | |
| 6 | name: openapi_client Python package |
| 7 | |
| 8 | on: [push, pull_request] |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | |
| 13 | runs-on: ubuntu-latest |
| 14 | strategy: |
| 15 | matrix: |
| 16 | python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 17 | |
| 18 | steps: |
| 19 | - uses: actions/checkout@v4 |
| 20 | - name: Set up Python ${{ matrix.python-version }} |
| 21 | uses: actions/setup-python@v4 |
| 22 | with: |
| 23 | python-version: ${{ matrix.python-version }} |
| 24 | - name: Install dependencies |
| 25 | run: | |
| 26 | python -m pip install --upgrade pip |
| 27 | pip install -r requirements.txt |
| 28 | pip install -r test-requirements.txt |
| 29 | - name: Test with pytest |
| 30 | run: | |
| 31 | pytest --cov=openapi_client |