-
Notifications
You must be signed in to change notification settings - Fork 73
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 github actions to automatically run tests #16
base: main
Are you sure you want to change the base?
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,24 @@ | ||||||||||||||||||
--- | ||||||||||||||||||
name: Test | ||||||||||||||||||
|
||||||||||||||||||
on: [pull_request, push] | ||||||||||||||||||
|
||||||||||||||||||
jobs: | ||||||||||||||||||
test: | ||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||
strategy: | ||||||||||||||||||
matrix: | ||||||||||||||||||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] | ||||||||||||||||||
steps: | ||||||||||||||||||
- uses: actions/checkout@v2 | ||||||||||||||||||
- name: Set up Python ${{ matrix.python-version }} | ||||||||||||||||||
uses: actions/setup-python@v2 | ||||||||||||||||||
Comment on lines
+13
to
+15
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. should be updated to:
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.
Suggested change
|
||||||||||||||||||
with: | ||||||||||||||||||
python-version: ${{ matrix.python-version }} | ||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||
run: | | ||||||||||||||||||
python -m pip install --upgrade pip setuptools wheel | ||||||||||||||||||
pip install pytest nose coverage cached-property | ||||||||||||||||||
python setup.py clean build install | ||||||||||||||||||
- name: Run test | ||||||||||||||||||
run: nosetests --with-coverage | ||||||||||||||||||
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. Hmm, this is different from what
Comment on lines
+21
to
+24
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.
Suggested change
|
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.
Can we add 3.10 and 3.11 here?
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.