Skip to content

Commit

Permalink
first test of new version of openapi-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
juliecoust committed Mar 28, 2024
1 parent 72a2ebc commit ea974cf
Show file tree
Hide file tree
Showing 284 changed files with 37,422 additions and 38,988 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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: ecotaxa_py_client Python package

on: [push, pull_request]

jobs:
build:

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

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
pip install flake8 pytest
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: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
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=ecotaxa_py_client

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
161 changes: 82 additions & 79 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github/workflows/python.yml
.gitignore
.gitlab-ci.yml
.openapi-generator-ignore
Expand Down Expand Up @@ -70,6 +71,7 @@ docs/ProjectTaxoStatsModel.md
docs/ProjectUserStatsModel.md
docs/ProjectsApi.md
docs/ResetPasswordReq.md
docs/ResponseDoNothingNoopGet.md
docs/SampleModel.md
docs/SampleTaxoStatsModel.md
docs/SamplesApi.md
Expand Down Expand Up @@ -114,90 +116,91 @@ ecotaxa_py_client/api/taxonomy_tree_api.py
ecotaxa_py_client/api/users_api.py
ecotaxa_py_client/api/wip_api.py
ecotaxa_py_client/api_client.py
ecotaxa_py_client/apis/__init__.py
ecotaxa_py_client/api_response.py
ecotaxa_py_client/configuration.py
ecotaxa_py_client/exceptions.py
ecotaxa_py_client/model/__init__.py
ecotaxa_py_client/model/acquisition_model.py
ecotaxa_py_client/model/backup_export_req.py
ecotaxa_py_client/model/body_export_object_set_backup_object_set_export_backup_post.py
ecotaxa_py_client/model/body_export_object_set_general_object_set_export_general_post.py
ecotaxa_py_client/model/body_export_object_set_object_set_export_post.py
ecotaxa_py_client/model/body_export_object_set_summary_object_set_export_summary_post.py
ecotaxa_py_client/model/body_predict_object_set_object_set_predict_post.py
ecotaxa_py_client/model/bulk_update_req.py
ecotaxa_py_client/model/classify_auto_req.py
ecotaxa_py_client/model/classify_req.py
ecotaxa_py_client/model/col_update.py
ecotaxa_py_client/model/collection_model.py
ecotaxa_py_client/model/constants.py
ecotaxa_py_client/model/create_collection_req.py
ecotaxa_py_client/model/create_project_req.py
ecotaxa_py_client/model/darwin_core_export_req.py
ecotaxa_py_client/model/directory_entry_model.py
ecotaxa_py_client/model/directory_model.py
ecotaxa_py_client/model/export_images_options_enum.py
ecotaxa_py_client/model/export_req.py
ecotaxa_py_client/model/export_rsp.py
ecotaxa_py_client/model/export_split_options_enum.py
ecotaxa_py_client/model/export_type_enum.py
ecotaxa_py_client/model/general_export_req.py
ecotaxa_py_client/model/group_definitions.py
ecotaxa_py_client/model/historical_classification.py
ecotaxa_py_client/model/historical_last_classif.py
ecotaxa_py_client/model/http_validation_error.py
ecotaxa_py_client/model/image_model.py
ecotaxa_py_client/model/import_req.py
ecotaxa_py_client/model/import_rsp.py
ecotaxa_py_client/model/job_model.py
ecotaxa_py_client/model/license_enum.py
ecotaxa_py_client/model/limit_methods.py
ecotaxa_py_client/model/login_req.py
ecotaxa_py_client/model/merge_rsp.py
ecotaxa_py_client/model/min_user_model.py
ecotaxa_py_client/model/minimal_user_bo.py
ecotaxa_py_client/model/ml_model.py
ecotaxa_py_client/model/object_header_model.py
ecotaxa_py_client/model/object_model.py
ecotaxa_py_client/model/object_set_query_rsp.py
ecotaxa_py_client/model/object_set_revert_to_history_rsp.py
ecotaxa_py_client/model/object_set_summary_rsp.py
ecotaxa_py_client/model/prediction_req.py
ecotaxa_py_client/model/prediction_rsp.py
ecotaxa_py_client/model/process_model.py
ecotaxa_py_client/model/project_filters.py
ecotaxa_py_client/model/project_filters_dict.py
ecotaxa_py_client/model/project_model.py
ecotaxa_py_client/model/project_set_column_stats_model.py
ecotaxa_py_client/model/project_summary_model.py
ecotaxa_py_client/model/project_taxo_stats_model.py
ecotaxa_py_client/model/project_user_stats_model.py
ecotaxa_py_client/model/reset_password_req.py
ecotaxa_py_client/model/sample_model.py
ecotaxa_py_client/model/sample_taxo_stats_model.py
ecotaxa_py_client/model/sci_export_type_enum.py
ecotaxa_py_client/model/simple_import_req.py
ecotaxa_py_client/model/simple_import_rsp.py
ecotaxa_py_client/model/subset_req.py
ecotaxa_py_client/model/subset_rsp.py
ecotaxa_py_client/model/summary_export_grouping_enum.py
ecotaxa_py_client/model/summary_export_quantities_options_enum.py
ecotaxa_py_client/model/summary_export_req.py
ecotaxa_py_client/model/summary_export_sum_options_enum.py
ecotaxa_py_client/model/taxa_search_rsp.py
ecotaxa_py_client/model/taxon_central.py
ecotaxa_py_client/model/taxon_model.py
ecotaxa_py_client/model/taxon_usage_model.py
ecotaxa_py_client/model/taxonomy_recast.py
ecotaxa_py_client/model/taxonomy_tree_status.py
ecotaxa_py_client/model/user_activate_req.py
ecotaxa_py_client/model/user_activity.py
ecotaxa_py_client/model/user_model_with_rights.py
ecotaxa_py_client/model/validation_error.py
ecotaxa_py_client/model_utils.py
ecotaxa_py_client/models/__init__.py
ecotaxa_py_client/models/acquisition_model.py
ecotaxa_py_client/models/backup_export_req.py
ecotaxa_py_client/models/body_export_object_set_backup_object_set_export_backup_post.py
ecotaxa_py_client/models/body_export_object_set_general_object_set_export_general_post.py
ecotaxa_py_client/models/body_export_object_set_object_set_export_post.py
ecotaxa_py_client/models/body_export_object_set_summary_object_set_export_summary_post.py
ecotaxa_py_client/models/body_predict_object_set_object_set_predict_post.py
ecotaxa_py_client/models/bulk_update_req.py
ecotaxa_py_client/models/classify_auto_req.py
ecotaxa_py_client/models/classify_req.py
ecotaxa_py_client/models/col_update.py
ecotaxa_py_client/models/collection_model.py
ecotaxa_py_client/models/constants.py
ecotaxa_py_client/models/create_collection_req.py
ecotaxa_py_client/models/create_project_req.py
ecotaxa_py_client/models/darwin_core_export_req.py
ecotaxa_py_client/models/directory_entry_model.py
ecotaxa_py_client/models/directory_model.py
ecotaxa_py_client/models/export_images_options_enum.py
ecotaxa_py_client/models/export_req.py
ecotaxa_py_client/models/export_rsp.py
ecotaxa_py_client/models/export_split_options_enum.py
ecotaxa_py_client/models/export_type_enum.py
ecotaxa_py_client/models/general_export_req.py
ecotaxa_py_client/models/group_definitions.py
ecotaxa_py_client/models/historical_classification.py
ecotaxa_py_client/models/historical_last_classif.py
ecotaxa_py_client/models/http_validation_error.py
ecotaxa_py_client/models/image_model.py
ecotaxa_py_client/models/import_req.py
ecotaxa_py_client/models/import_rsp.py
ecotaxa_py_client/models/job_model.py
ecotaxa_py_client/models/license_enum.py
ecotaxa_py_client/models/limit_methods.py
ecotaxa_py_client/models/login_req.py
ecotaxa_py_client/models/merge_rsp.py
ecotaxa_py_client/models/min_user_model.py
ecotaxa_py_client/models/minimal_user_bo.py
ecotaxa_py_client/models/ml_model.py
ecotaxa_py_client/models/object_header_model.py
ecotaxa_py_client/models/object_model.py
ecotaxa_py_client/models/object_set_query_rsp.py
ecotaxa_py_client/models/object_set_revert_to_history_rsp.py
ecotaxa_py_client/models/object_set_summary_rsp.py
ecotaxa_py_client/models/prediction_req.py
ecotaxa_py_client/models/prediction_rsp.py
ecotaxa_py_client/models/process_model.py
ecotaxa_py_client/models/project_filters.py
ecotaxa_py_client/models/project_filters_dict.py
ecotaxa_py_client/models/project_model.py
ecotaxa_py_client/models/project_set_column_stats_model.py
ecotaxa_py_client/models/project_summary_model.py
ecotaxa_py_client/models/project_taxo_stats_model.py
ecotaxa_py_client/models/project_user_stats_model.py
ecotaxa_py_client/models/reset_password_req.py
ecotaxa_py_client/models/response_do_nothing_noop_get.py
ecotaxa_py_client/models/sample_model.py
ecotaxa_py_client/models/sample_taxo_stats_model.py
ecotaxa_py_client/models/sci_export_type_enum.py
ecotaxa_py_client/models/simple_import_req.py
ecotaxa_py_client/models/simple_import_rsp.py
ecotaxa_py_client/models/subset_req.py
ecotaxa_py_client/models/subset_rsp.py
ecotaxa_py_client/models/summary_export_grouping_enum.py
ecotaxa_py_client/models/summary_export_quantities_options_enum.py
ecotaxa_py_client/models/summary_export_req.py
ecotaxa_py_client/models/summary_export_sum_options_enum.py
ecotaxa_py_client/models/taxa_search_rsp.py
ecotaxa_py_client/models/taxon_central.py
ecotaxa_py_client/models/taxon_model.py
ecotaxa_py_client/models/taxon_usage_model.py
ecotaxa_py_client/models/taxonomy_recast.py
ecotaxa_py_client/models/taxonomy_tree_status.py
ecotaxa_py_client/models/user_activate_req.py
ecotaxa_py_client/models/user_activity.py
ecotaxa_py_client/models/user_model_with_rights.py
ecotaxa_py_client/models/validation_error.py
ecotaxa_py_client/py.typed
ecotaxa_py_client/rest.py
git_push.sh
pyproject.toml
requirements.txt
setup.cfg
setup.py
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
7.4.0
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# uncomment the following if needed
#- "3.11-dev" # 3.11 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
- "pip install -r requirements.txt"
Expand Down
Loading

0 comments on commit ea974cf

Please sign in to comment.