Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Migrate CI to github actions #2

Merged
merged 7 commits into from
Jun 11, 2021
Merged

Conversation

RobbeSneyders
Copy link
Member

@RobbeSneyders RobbeSneyders commented Jun 10, 2021

This PR moves the CI pipeline from the Zalando's Travis CI to github actions so it can run on this repository.

Since no upper limits were defined for the dependencies, the pipeline was broken and I had to implement some fixes first. I added upper limits for the dependencies to prevent external changes from breaking Connexion in the future.

@MatthiasDurivet
Copy link
Member

This PR moves the CI pipeline from the Zalando's Travis CI to bitbucket pipeline so it can run on this repository.

Did you mean to GitHub Actions?

@MatthiasDurivet
Copy link
Member

So the big change is the pipeline was converted to GitHub Actions (what was it before that?)

Also some minor code/import changes to make sure the pipeline succeeds?

If so LGTM

Comment on lines +81 to +96
async def aiohttp_all_auth(token_info):
return await aiohttp_token_info(token_info)


async def aiohttp_async_auth(token_info):
return await aiohttp_token_info(token_info)


async def aiohttp_bearer_auth(token_info):
return await aiohttp_token_info(token_info)


async def aiohttp_async_bearer_auth(token_info):
return await aiohttp_token_info(token_info)


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this solving?
Should all of these be async or only the ones with async in the name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The operationId in the OpenAPI spec needs to be unique to be valid. Connexion uses the operationId to link to the Python code that needs to be executed. Previously all endpoints in tests/fixtures/aiohttp/openapi_secure.yaml pointed to the same Python function which led to validation errors of the spec, so I decoupled this into separate functions.

Copy link
Member

@MatthiasDurivet MatthiasDurivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

setup.py Outdated Show resolved Hide resolved
@RobbeSneyders RobbeSneyders merged commit 6a0c245 into master Jun 11, 2021
@RobbeSneyders RobbeSneyders deleted the feature/travis-to-gh-actions branch June 11, 2021 11:32
@svetlana-v
Copy link

Sorry for the late comment. I think you forgot to remove Travis CI build status related info from README.rst?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants