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

Create yaml file for ELUC use case CI #77

Merged
merged 12 commits into from
Mar 22, 2024
Merged

Create yaml file for ELUC use case CI #77

merged 12 commits into from
Mar 22, 2024

Conversation

danyoungday
Copy link
Collaborator

First try at CI.

  1. Sets CWD to ELUC use case folder
  2. Sets PYTHONPATH to CWD
  3. Installs requirements.txt
  4. Runs unittest
  5. Runs pylint

@danyoungday danyoungday requested a review from ofrancon March 21, 2024 18:14
@danyoungday danyoungday self-assigned this Mar 21, 2024
Copy link
Member

@ofrancon ofrancon left a comment

Choose a reason for hiding this comment

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

looks like a good start

if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run unit tests
run: python -m unittest
- name: Lint with PyLint
Copy link
Member

Choose a reason for hiding this comment

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

You should run pylint before the unit tests. First check the code is 'clean' (fast), then run the tests (slow).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved


on:
push:
branches: [ "main" ]
Copy link
Member

Choose a reason for hiding this comment

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

Can we run it on all branch? Because we shouldn't be able to merge if pylint or the tests fail

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently runs whenever a PR goes into main

@danyoungday danyoungday merged commit d5619d7 into main Mar 22, 2024
1 check passed
@danyoungday danyoungday deleted the eluc-ci branch March 22, 2024 18:05
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