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

Initial CI #3

Merged
merged 6 commits into from
May 9, 2024
Merged

Initial CI #3

merged 6 commits into from
May 9, 2024

Conversation

ethanholz
Copy link
Contributor

This PR adds an initial GitHub action for use in testing this project. It will later be adapted to handle mypy and linting down the line.

@ethanholz ethanholz requested a review from dwhswenson May 9, 2024 17:34
Copy link
Contributor

@dwhswenson dwhswenson left a comment

Choose a reason for hiding this comment

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

A couple minor changes. Should be quick to get this in and iterate

name: CI

on:
push:
Copy link
Contributor

Choose a reason for hiding this comment

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

add pull_request as a trigger as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we have specific PR events we want to run on or just all PR events?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The default is opened, reopened, and synchronize which should be enough for this and the changes have been pushed.

python -m pip install --upgrade pip setuptools wheel
python -m pip install --no-cache-dir .
python -m pip install --no-cache-dir '.[test]'
cd tests/
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably move this down to be part of the Run tests step. Also, this will break the current pytest command (since it would now be running tests in the tests/tests/ directory).

Copy link
Contributor

@dwhswenson dwhswenson left a comment

Choose a reason for hiding this comment

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

LGTM! Let's merge it and hope it runs....

@dwhswenson dwhswenson merged commit cdbf8cc into omsf-eco-infra:main May 9, 2024
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