FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Move CI to Github Actions by goanpeca · Pull Request #803 · palantir/python-language-server · GitHub

Move CI to Github Actions - #803

Merged
ccordoba12 merged 1 commit into
developfrom
enh/github-actions
Aug 12, 2020
Merged

Move CI to Github Actions#803
ccordoba12 merged 1 commit into
developfrom
enh/github-actions

Conversation

goanpeca commented May 11, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

Add win, mac and linux testing for Python 2.7, 3.6, 3.7 and 3.8

goanpeca force-pushed the enh/github-actions branch from ba6ee64 to 14d0472 Compare May 11, 2020 03:12
goanpeca self-assigned this May 11, 2020
goanpeca force-pushed the enh/github-actions branch 3 times, most recently from 0afbd1b to e98f556 Compare May 11, 2020 04:44
goanpeca changed the title WIP: Add github actions CI PR: Add github actions CI May 11, 2020
goanpeca force-pushed the enh/github-actions branch 3 times, most recently from 2927eaa to a9ce4f1 Compare May 11, 2020 05:33
goanpeca requested a review from ccordoba12 May 11, 2020 05:34
goanpeca force-pushed the enh/github-actions branch 2 times, most recently from 94e42fb to 734c65f Compare May 11, 2020 05:43

goanpeca commented May 11, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

@gatesn could we disable appveyor and circle ci webhooks?
Also could we disable the "required" checks from the PRs?

https://github.com/palantir/python-language-server/settings/hooks (we do not have access to that :-). )

Thanks!

goanpeca force-pushed the enh/github-actions branch 5 times, most recently from 5f14429 to 52279d1 Compare June 15, 2020 23:48

Copy link
Copy Markdown
Contributor

@goanpeca, please restore the CircleCI checks and simply make them pass so I can merge this one.

goanpeca commented Jun 17, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

@goanpeca, please restore the CircleCI checks and simply make them pass so I can merge this one.

They are restored, but they simply stoped running. Other PRs seem to be facing the same issue.

Copy link
Copy Markdown
Contributor

@goanpeca @ccordoba12 I removed the circle and appveyor webhooks, and made the checks non-required. Let's fix-up this branch to unblock further PRs.

goanpeca force-pushed the enh/github-actions branch from 52279d1 to 66b3f94 Compare August 4, 2020 12:50

goanpeca commented Aug 4, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

@jroitgrund Thanks!, actually we need to keep the circleci hooks, since there we have the job in charge of making a release when a new tag is published. And the release process is tied to some passwords that I assume were configured as environment variables on circle ci.

I could move the process to Github actions as well, but some extra configuration would be needed on the secrest sections of setttings on this repo so we can use those PyPI passwords/tokens in the github action workflow.

goanpeca marked this pull request as draft August 4, 2020 13:09
ccordoba12 added this to the v0.35.0 milestone Aug 12, 2020
ccordoba12 changed the title PR: Add github actions CI PR: Move CI to Github Actions Aug 12, 2020
ccordoba12 changed the title PR: Move CI to Github Actions Move CI to Github Actions Aug 12, 2020
ccordoba12 marked this pull request as ready for review August 12, 2020 19:16

ccordoba12 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @goanpeca!

ccordoba12 merged commit 283073b into develop Aug 12, 2020
ccordoba12 deleted the enh/github-actions branch August 12, 2020 19:17

Copy link
Copy Markdown
Contributor

@gatesn do you have a copy of the secrets from circle so we can add them as github actions secrets?

gatesn commented Sep 8, 2020

Copy link
Copy Markdown
Contributor

They should be stored in passwords.y.l

Copy link
Copy Markdown
Contributor

@goanpeca I added PIPY_HOST, PIPY_PASSWORD, and PIPY_USERNAME as GH secrets, so I think all we need is a GitHub action mirroring https://github.com/palantir/python-language-server/blob/develop/.circleci/config.yml#L36-L41

Copy link
Copy Markdown
Contributor Author

Thanks @jroitgrund

I will take a look

Copy link
Copy Markdown
Contributor

@jroitgrund, could you also add TWINE_USERNAME and TWINE_PASSWORD?

I think that it's easier to use twine to upload the wheel and tarball instead of setup.py, and those env vars are needed for that according to

https://twine.readthedocs.io/en/latest/#environment-variables

jroitgrund commented Sep 10, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

Done! We were previously publishing via https://upload.pypi.org/legacy/ but I guess we won't need to anymore if we switch to twine.

Copy link
Copy Markdown
Contributor

Thanks a lot @jroitgrund! I'll try to add support for twine on Github actions tonight (CDT) if @goanpeca doesn't it add before.

goanpeca commented Sep 10, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

@jroitgrund from a security standpoint, it would be better to use tokens from PyPI, instead of username and password.

If you go to
https://pypi.org/manage/project/python-language-server/settings/

(Showing an example of another project)

And then clicking on Create a Token ...

That way we can use this step on the Github Workflow

    - name: Publish Client release
      env:
        TWINE_USERNAME: __token__
        TWINE_PASSWORD: ${{ secrets.PYPI_PYLS_TOKEN }}
      run: |
        python -m twine upload dist/*

No PIPY_HOST, PIPY_PASSWORD, and PIPY_USERNAME needs to be set/exposed, only PYPI_PYLS_TOKEN and it will only have access to publish the python-language-server package.

Copy link
Copy Markdown
Contributor

Good call, done.

Copy link
Copy Markdown
Contributor Author

Thanks @jroitgrund! Is the name PYPI_PYLS_TOKEN? I just pull that out of the blue.

Copy link
Copy Markdown
Contributor

Yep.

Copy link
Copy Markdown
Contributor

0.35.0 is finally out!

https://pypi.org/project/python-language-server/0.35.0/

Thanks @goanpeca for the tips and @jroitgrund for setting things up on your side.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL