-
Notifications
You must be signed in to change notification settings - Fork 50
Update GitHub runner to Linux-x64 #173
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
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
359360b
update action to the newer version from biocsetup, use the Linux-x86 …
jkanche 79f73d6
only run tests on 3.10, same as before
jkanche 3cbd5e9
update runner tag
jkanche 4feb6cd
disable wandb logging for tests
jkanche 3e013b6
updated tangermeme version
avantikalal 25404fb
add debug in test
avantikalal 1dc4736
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 81d51ef
add debug in test
avantikalal 3b30666
Merge branch 'update-runner' of https://github.com/Genentech/gReLU in…
avantikalal e66caba
add debug in test
avantikalal ae691f2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 245deb7
lower level debug test
avantikalal a28021b
lower level debug test
avantikalal 89d98a6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 541a71a
add atol
avantikalal 12db600
add atol
avantikalal 8a8106a
use atol for all tests
avantikalal 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
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 |
|---|---|---|
| @@ -1,40 +1,74 @@ | ||
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
|
||
| name: Test the library | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| branches: | ||
| - master # for legacy repos | ||
| - main | ||
| pull_request: | ||
| branches: [ main ] | ||
| branches: | ||
| - master # for legacy repos | ||
| - main | ||
| workflow_dispatch: # Allow manually triggering the workflow | ||
| schedule: | ||
| # Run roughly every 15 days at 00:00 UTC | ||
| # (useful to check if updates on dependencies break the package) | ||
| - cron: "0 0 1,16 * *" | ||
|
|
||
| jobs: | ||
| build: | ||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: >- | ||
| ${{ github.workflow }}-${{ github.ref_type }}- | ||
| ${{ github.event.pull_request.number || github.sha }} | ||
| cancel-in-progress: true | ||
|
|
||
| runs-on: ubuntu-latest | ||
| jobs: | ||
| test: | ||
| strategy: | ||
| matrix: | ||
| python-version: [ '3.10' ] | ||
|
|
||
| name: Python ${{ matrix.python-version }} | ||
| python: ["3.10"] # , "3.11", "3.12", "3.13", "3.14" | ||
| platform: | ||
| - Linux-x64 | ||
| # - ubuntu-latest | ||
| # - macos-latest | ||
| # - windows-latest | ||
| runs-on: ${{ matrix.platform }} | ||
| name: Python ${{ matrix.python }}, ${{ matrix.platform }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: 'pip' | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install flake8 pytest tox | ||
| # - name: Lint with flake8 | ||
| # run: | | ||
| # # stop the build if there are Python syntax errors or undefined names | ||
| # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
| # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
| # # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| - name: Test with tox | ||
| run: | | ||
| tox | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| id: setup-python | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install tox coverage | ||
|
|
||
| - name: Run tests | ||
| run: >- | ||
| pipx run --python '${{ steps.setup-python.outputs.python-path }}' | ||
| tox | ||
| -- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml # pytest args | ||
|
|
||
| - name: Check for codecov token availability | ||
| id: codecov-check | ||
| shell: bash | ||
| run: | | ||
| if [ ${{ secrets.CODECOV_TOKEN }} != '' ]; then | ||
| echo "codecov=true" >> $GITHUB_OUTPUT; | ||
| else | ||
| echo "codecov=false" >> $GITHUB_OUTPUT; | ||
| fi | ||
|
|
||
| - name: Upload coverage reports to Codecov with GitHub Action | ||
| uses: codecov/codecov-action@v5 | ||
| if: ${{ steps.codecov-check.outputs.codecov == 'true' }} | ||
| env: | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| slug: ${{ github.repository }} | ||
| flags: ${{ matrix.platform }} - py${{ matrix.python }} |
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
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.
IF you end up creating an api key and storing it as a secret, delete this line