-
Notifications
You must be signed in to change notification settings - Fork 0
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
Addding homework_04 #111
base: main
Are you sure you want to change the base?
Addding homework_04 #111
Conversation
name: Pylint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- homework_04/05_viktoriya_vasileva/** | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- homework_04/05_viktoriya_vasileva/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Analysing the code with pylint | ||
run: | | ||
cd homework_04 | ||
cd 05_viktoriya_vasileva | ||
pylint circles.py | ||
pylint test_circles.py |
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.
This file needs to be in .github/workflows so the checks actually run. That way github does not recognise the yaml file as a workflow so it does not run neither on push nor pull request.
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 also do not have a "run" which runs the tests. You need to add that as well.
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.
+1
|
||
def line(self, point): | ||
""" | ||
Find the length og the line |
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.
typo
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.
Said issues are still not resloved. The .yaml file should not be included in homework_04 folder
name: Pylint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- homework_04/05_viktoriya_vasileva/** | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- homework_04/05_viktoriya_vasileva/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Analysing the code with pylint | ||
run: | | ||
cd homework_04 | ||
cd 05_viktoriya_vasileva | ||
pylint circles.py | ||
pylint test_circles.py |
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.
+1
8c8a476
to
d5d9fcc
Compare
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.
OK
@@ -0,0 +1,34 @@ | |||
name: Pylint |
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.
The convention here should be: Homework 04 - xx Firstname Lastname
Furthermore, this file should be in the folder .github/workflows.
run: | | ||
cd homework_04 | ||
cd 05_viktoriya_vasileva | ||
pylint circles.py | ||
pylint test_circles.py |
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.
After this you need another section for running the unit tests. For your case, this is:
- name: Run All Unit Tests
run: |
cd homework_04/05_viktoriya_vasileva
pytest
I will just comment without accepting or returning the request, try to fix these problems, if you want help, ask.
No description provided.