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

Implement equation_of_line and setup CI testing #9

Merged
merged 3 commits into from
Jun 25, 2024
Merged

Implement equation_of_line and setup CI testing #9

merged 3 commits into from
Jun 25, 2024

Conversation

jwallwork23
Copy link
Collaborator

Closes #1.
Closes #6.

This PR provides an implementation for the equation_of_line function using the standard $y=mx+c$ formula.

It also sets up a test suite for continuous integration testing.

@jwallwork23 jwallwork23 added the enhancement New feature or request label Jun 25, 2024
@jwallwork23 jwallwork23 self-assigned this Jun 25, 2024
@jwallwork23 jwallwork23 marked this pull request as ready for review June 25, 2024 13:37
@jwallwork23 jwallwork23 requested a review from TomMelt June 25, 2024 13:37
Copy link
Member

@TomMelt TomMelt left a comment

Choose a reason for hiding this comment

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

thanks for add CI and implementing equation_of_line. Looks good to me. I have some general questions but I am happy for the merge to go ahead.

push:
branches: ["main"]

# Triggers the workflow on pushes to pull requests
Copy link
Member

Choose a reason for hiding this comment

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

👍 thanks for the detailed comments. It's clear to see what each bit of the workflow yml does

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
Copy link
Member

Choose a reason for hiding this comment

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

what is the benefit of '3.x' vs '3.12' for example?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It uses the latest available minor release of Python 3, rather than pinning to a particular version. (See https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#using-a-specific-python-version.)

@jwallwork23
Copy link
Collaborator Author

Thanks for the review @TomMelt.

@jwallwork23 jwallwork23 merged commit a58ff9a into main Jun 25, 2024
1 check passed
@jwallwork23 jwallwork23 deleted the impl1 branch June 25, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up continuous integration testing Add some example code
2 participants