Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNE-6228: Replace Travis CI with Github Actions #320

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

mVenetos97
Copy link
Collaborator

Move from travis CI to github actions

@mVenetos97 mVenetos97 changed the title PNE-6228: initial yaml PNE-6228: Replace Travis CI with Github Actions Sep 25, 2024
test:
runs-on: ubuntu-latest
strategy:
matrix:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using a matrix here feels a bit awkward since you need custom logic for each. Might be more clear to have two separate jobs that run in parallel.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I split into separate jobs.

if: matrix.test-type == 'scala'
uses: actions/setup-java@v2
with:
java-version: ${{ env.JAVA_VERSION }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

are these env vars set? I don't see them. Same with the secrets you reference.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, I just have them set in the yml itself

distribution: 'adopt'
- name: Release to Maven Central
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

what are these secrets? Have you set them? How do they get used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are for deploying and they are set in Github

- name: Build and publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this the same token as from the repo used by our other python libraries (citrine-python & gemd-python)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes but I dont think you can share them across our libraries

Comment on lines +42 to +43
python-version: ["3.8"]
os: [ubuntu-latest]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

An earlier commit had python 3.8-3.12 and also had mac and windows OS. Unfortunately, it looks like lolo is not up to date so I reverted back to ubuntu and 3.8. I plan to make another PR to bring lolo into the present

Copy link
Collaborator

@StevenKauwe StevenKauwe left a comment

Choose a reason for hiding this comment

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

lgtm?

@mVenetos97 mVenetos97 merged commit d859ae5 into main Sep 30, 2024
2 checks passed
@mVenetos97 mVenetos97 deleted the PNE-6228-Add-Github-Actions branch September 30, 2024 16:15
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.

2 participants