Skip to content

Commit

Permalink
Update generator to v7.5.0 (BREAKING) (#228)
Browse files Browse the repository at this point in the history
* chore: Update generator to v7.5.0

* chore: Apply new generator version

* chore: Update python workflow
  • Loading branch information
p-fruck authored Apr 22, 2024
1 parent dfef6eb commit 13e9815
Show file tree
Hide file tree
Showing 430 changed files with 53,197 additions and 19,418 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: pfruck_contabo Python package

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Run unittests
run: |
python3 -m unittest
27 changes: 17 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.gitlab.com/ee/ci/README.html
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml

stages:
- test

.tests:
.pytest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=pfruck_contabo

test-3.6:
extends: .tests
image: python:3.6-alpine
test-3.7:
extends: .tests
pytest-3.7:
extends: .pytest
image: python:3.7-alpine
test-3.8:
extends: .tests
pytest-3.8:
extends: .pytest
image: python:3.8-alpine
test-3.9:
extends: .tests
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Loading

0 comments on commit 13e9815

Please sign in to comment.