-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use pytest on CI #252
Use pytest on CI #252
Conversation
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
|
||
- name: Checkout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this step?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not add a new step, just add name to it "Run actions/checkout@v2" => "Checkout"
.github/workflows/python-app.yml
Outdated
- name: Setup docker | ||
run: | | ||
sudo apt install apt-transport-https ca-certificates curl software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test" | ||
sudo apt update | ||
sudo apt install docker-ce | ||
sudo apt install docker-ce docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker-ce is not enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, fixed
@@ -54,6 +54,7 @@ def test_check_dataflow_conflicts(self): | |||
|
|||
@mock.patch('bigflow.build.dataflow.dependency_checker.detect_py_version') | |||
@mock.patch('bigflow.build.spec.get_project_spec') | |||
@unittest.skip("too slow - tmp disable") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
bigflow/commons.py
Outdated
@@ -209,7 +209,7 @@ def run_process( | |||
duration = time.time() - start | |||
logger.debug("done in %s seconds, code %d", format(duration, ".2f"), process.returncode) | |||
|
|||
return stdout | |||
return stdout + "bad" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this suffix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an intentional break.
e6035c1
to
feff69d
Compare
Run unit tests on CI (github actions) via 'pytest'
Also attach pytest html report as zipped html file (contains tests duration & nice grouped output).