This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 325
ci: Update to the CI/CD pipeline via github workflow to help cut turn-around time #2189
Merged
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a700350
ci: adds a github workflow for experimental purposes
chalmerlowe 195e353
matches python versions to those in noxfile.py
chalmerlowe a9ecf14
remove magics to confirm test blocker
chalmerlowe 0599746
updates to magics handling: ensures interactive shell is present
chalmerlowe 4975589
testing run_query_patch
chalmerlowe dff59f8
comment out n=auto for testing purposes
chalmerlowe a0c3bc8
testing fails versus passes
chalmerlowe 427904b
testing explicit project
chalmerlowe e06d93a
testing explicit project with additional tests
chalmerlowe 1d95d9c
testing explicit project with remaining failing tests
chalmerlowe 675e491
update unittest.yml with unit_noextras
chalmerlowe 0c9cc33
Apply suggestions from code review
chalmerlowe e2e10f4
adds magics.context to one more test
chalmerlowe 59318a9
Merge branch 'main' into ci-move-to-github-workflows
chalmerlowe 5ddcaf8
Merge branch 'main' into ci-move-to-github-workflows
chalmerlowe 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,89 @@ | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| name: unittest | ||
| jobs: | ||
| unit: | ||
| # Use `ubuntu-latest` runner. | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python: ['3.9', '3.11', '3.12', '3.13'] | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - name: Install nox | ||
| run: | | ||
| python -m pip install --upgrade setuptools pip wheel | ||
| python -m pip install nox | ||
| - name: Run unit tests | ||
| env: | ||
| COVERAGE_FILE: .coverage-${{ matrix.python }} | ||
| run: | | ||
| nox -s unit-${{ matrix.python }} | ||
| - name: Upload coverage results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-artifact-${{ matrix.python }} | ||
| path: .coverage-${{ matrix.python }} | ||
| include-hidden-files: true | ||
|
|
||
| unit_noextras: | ||
| # Use `ubuntu-latest` runner. | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python: ['3.9', '3.13'] | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - name: Install nox | ||
| run: | | ||
| python -m pip install --upgrade setuptools pip wheel | ||
| python -m pip install nox | ||
| - name: Run unit_noextras tests | ||
| env: | ||
| COVERAGE_FILE: .coverage-${{ matrix.python }} | ||
| run: | | ||
| nox -s unit_noextras-${{ matrix.python }} | ||
| - name: Upload coverage results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-artifact-${{ matrix.python }} | ||
| path: .coverage-${{ matrix.python }} | ||
|
chalmerlowe marked this conversation as resolved.
Outdated
|
||
| include-hidden-files: true | ||
|
|
||
| cover: | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - unit | ||
| - unit_noextras | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.9" | ||
| - name: Install coverage | ||
| run: | | ||
| python -m pip install --upgrade setuptools pip wheel | ||
| python -m pip install coverage | ||
| - name: Download coverage results | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| path: .coverage-results/ | ||
| - name: Report coverage results | ||
| run: | | ||
| find .coverage-results -type f -name '*.zip' -exec unzip {} \; | ||
| coverage combine .coverage-results/**/.coverage* | ||
| coverage report --show-missing --fail-under=100 | ||
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.
Uh oh!
There was an error while loading. Please reload this page.