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

Addding homework_04 #111

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Addding homework_04 #111

wants to merge 5 commits into from

Conversation

Vicktoria853
Copy link
Collaborator

No description provided.

Comment on lines 1 to 34
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
Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

Copy link
Collaborator

@DeniBademi DeniBademi left a 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

Comment on lines 1 to 34
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
Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

Copy link
Collaborator

@mvvrachev mvvrachev left a comment

Choose a reason for hiding this comment

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

OK

@Vicktoria853 Vicktoria853 requested review from DeniBademi and a user and removed request for DeniBademi March 15, 2022 17:56
@@ -0,0 +1,34 @@
name: Pylint
Copy link

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.

Comment on lines +30 to +34
run: |
cd homework_04
cd 05_viktoriya_vasileva
pylint circles.py
pylint test_circles.py
Copy link

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.

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