-
Notifications
You must be signed in to change notification settings - Fork 35
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Test suite workflow | ||
name: Test suite | ||
|
||
# Controls when the workflow will run | ||
on: | ||
|
||
# Triggers the workflow on pushes to the 'main' branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Triggers the workflow on pushes to pull requests | ||
pull_request: | ||
|
||
# Enables running workflows manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Details of the workflow run | ||
jobs: | ||
|
||
# This workflow contains a single job called 'test_suite' | ||
test_suite: | ||
|
||
# The type of runner the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Sequence of tasks to execute in the job | ||
steps: | ||
|
||
# Checkout the repository | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Install Python 3 | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the benefit of There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.) |
||
|
||
# Install dependencies of the repository | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install -r requirements.txt | ||
|
||
# Run the tests | ||
- name: Run tests | ||
run: | | ||
pytest -v |
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.
👍 thanks for the detailed comments. It's clear to see what each bit of the workflow
yml
does