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

Ci workflow #16

Merged
merged 12 commits into from
Aug 13, 2021
Merged

Ci workflow #16

merged 12 commits into from
Aug 13, 2021

Conversation

aidan-wagner
Copy link
Contributor

Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

Added fprime-gds tests to workflow

Rationale

To ensure fprime-gds is not broken by future updates

Future Work

Create tests to ensure backwards compatability

.github/workflows/fprime-gds-tests.yml Outdated Show resolved Hide resolved
pytest.ini Show resolved Hide resolved
.github/workflows/fprime-gds-tests.yml Outdated Show resolved Hide resolved
@@ -54,7 +54,6 @@ def sample_event(sample_template):
filtering_utils.get_search_predicate("the same combination"),
],
)
@pytest.mark.gds_cli
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to remove these markers to get everything working? I haven't used pytest much, so I definitely don't know what I'm talking about, but I assumed that pytest would just run everything by default. If tests have already been marked they're probably worth keeping just on the off chance somebody running locally just wants to run the cli tests or something.

Copy link
Contributor Author

@aidan-wagner aidan-wagner Aug 10, 2021

Choose a reason for hiding this comment

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

Yeah, if you have the markers but don't define them then it gives a bunch of warnings. Should I add them back in then?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I get it now. Yeah, add the pytest.ini file back in. Something tells me nobody has been running these unit tests anytime recently.

Copy link
Contributor

@Joshua-Anderson Joshua-Anderson left a comment

Choose a reason for hiding this comment

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

:shipit: Sorry for the churn on the pytest markers... looks good to me now!

@@ -0,0 +1,25 @@
name: fprime-gds tests

on: [pull_request]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please make this workflow triggered on both pull requests and pushes (so that it runs on the devel branch as well)

@LeStarch
Copy link
Collaborator

@aidan-wagner what tests does this run? Do we have pytests in GDS that aren't integration tests?

@LeStarch LeStarch self-requested a review August 11, 2021 00:32
@LeStarch
Copy link
Collaborator

@aidan-wagner i stand corrected. Looks good!

@LeStarch LeStarch merged commit 733010c into nasa:devel Aug 13, 2021
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.

3 participants