-
Notifications
You must be signed in to change notification settings - Fork 0
Pass Github Actions #5
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
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f15eec7
add github actions test
sarahmish 03fbb19
add missing conflict deps
sarahmish 76c66b6
Merge remote-tracking branch 'origin/main' into test
amzhao16 61d186d
lint fixes: tabs vs spaces, remove trailing whitespace, remove misc c…
amzhao16 666e84b
more lint fixes
amzhao16 16a1f57
another round of space fixing
amzhao16 c157e24
fix lint, python requires >= 3.10
amzhao16 4bbe2e5
removed unsupported 3.9
amzhao16 7b823c8
remove 3.9 elsewhere
amzhao16 6e3378b
add sphinx constraint
amzhao16 55ea411
fix docs
sarahmish ee918c8
upgrade pip
sarahmish 057a45f
init change, current recursive issue
amzhao16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| * PyGridSim version: | ||
| * Python version: | ||
| * Operating System: | ||
|
|
||
| ### Description | ||
|
|
||
| Describe what you were trying to get done. | ||
| Tell us what happened, what went wrong, and what you expected to happen. | ||
|
|
||
| ### What I Did | ||
|
|
||
| ``` | ||
| Paste the command(s) you ran and the output. | ||
| If there was a crash, please include the traceback here. | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Run Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ '*' ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| docs: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| os: [ubuntu-latest] | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install package | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools | ||
| pip install .[dev] | ||
| - name: make docs | ||
| run: make docs | ||
|
|
||
| lint: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| os: [ubuntu-latest, macos-latest] | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install package and dependencies | ||
| run: pip install .[dev] | ||
| - name: make lint | ||
| run: make lint | ||
|
|
||
| test: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install package and dependencies | ||
| run: pip install .[test] | ||
| - name: make test | ||
| run: make test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,6 @@ | |
| __email__ = '[email protected]' | ||
| __version__ = '0.1.0.dev1' | ||
|
|
||
| from pygridsim.core import PyGridSim as PyGridSim | ||
| from pygridsim.core import PyGridSim | ||
|
|
||
| __all__ = ['PyGridSim'] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think you need this if you would like to keep
from pygridsim import PyGridSim. To overcome lint complaints, you can do the following:Then the "unused" imports will no longer be an error.