-
Notifications
You must be signed in to change notification settings - Fork 110
Replace travis-ci #2201
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
Replace travis-ci #2201
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
470ab08
Replace travis-ci
ni-jfitzger 0353088
Update source for README.rst
ni-jfitzger 3f1d8de
Explicitly call individual tox steps to avoid running 3.12-only steps…
ni-jfitzger 9c25d16
Don't include a decimal in the Python version passed to tox
ni-jfitzger c06c621
Fix matrix issue
ni-jfitzger 1866cf9
Split unit_tests into multiple workflows, based on the steps actually…
ni-jfitzger a9eddcd
Rename unit_tests workflow to run_unit_tests
ni-jfitzger e3052a2
Add step to build installers
ni-jfitzger e09e125
Update badge reference to reflect workflow changes.
ni-jfitzger f98ea3a
Eliminate references to Travis
ni-jfitzger 0d425a7
Stop running Python 3.12 unit tests, first. There's no benefit.
ni-jfitzger bab6bc7
List run_build_check before run_unit_tests.
ni-jfitzger e21c458
End run_unit_tests with a newline
ni-jfitzger 9b69eca
Remove silly comment.
ni-jfitzger cdd03a2
Drop releases/** branch triggering. We have no such branches.
ni-jfitzger eb6cf18
Upload codegen test coverage in run_build_checks, where those tests a…
ni-jfitzger 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,25 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| ensure_codegen_up_to_date: | ||
| name: Ensure codegen is up to date | ||
| uses: ./.github/workflows/ensure_codegen_up_to_date.yml | ||
|
|
||
| run_build_checks: | ||
| name: Run build checks | ||
| needs: ensure_codegen_up_to_date | ||
| uses: ./.github/workflows/run_build_checks.yml | ||
|
|
||
| run_unit_tests: | ||
| name: Run unit tests | ||
| needs: ensure_codegen_up_to_date | ||
| uses: ./.github/workflows/run_unit_tests.yml |
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,19 @@ | ||
| name: PR | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| run_ci: | ||
| name: Run CI | ||
| uses: ./.github/workflows/CI.yml |
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 |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Ensure codegen is up to date | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| ensure_codegen_up_to_date: | ||
| name: Ensure codegen is up to date | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| submodules: recursive | ||
| - name: Set up Python | ||
| uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1 | ||
| id: setup-python | ||
| with: | ||
| python-version: '3.12' | ||
| - name: Install tox | ||
| run: python -m pip install --upgrade tox | ||
| - name: Cache tox environments | ||
| uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 | ||
| with: | ||
| path: .tox | ||
| key: nimi-python-codegen-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('tox.ini') }} | ||
| - name: Ensure codegen is up to date | ||
| run: python tools/ensure_codegen_up_to_date.py |
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,39 @@ | ||
| name: Run build checks | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| run_build_checks: | ||
| name: Run build and package checks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| submodules: recursive | ||
| - name: Set up Python | ||
| uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1 | ||
| id: setup-python | ||
| with: | ||
| python-version: '3.12' | ||
| - name: Install tox | ||
| run: python -m pip install --upgrade tox | ||
| - name: Cache tox environments | ||
| uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 | ||
| with: | ||
| path: .tox | ||
| key: nimi-python-build-checks-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('tox.ini') }} | ||
| - name: Build installers | ||
| run: tox -c tox.ini -e py312-installers | ||
| - name: Run build and package checks | ||
| run: tox -c tox.ini -e py312-build_test,py312-flake8,py312-docs,py312-pkg | ||
| - name: Upload codegen unit-test coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| # See ../PUBLIC_CODECOV_TOKEN_README.md | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: codegenunittests | ||
| files: ./codegen.xml | ||
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,95 @@ | ||
| name: Run unit tests | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| run_unit_tests: | ||
| name: Run unit tests (${{ matrix.os }}, Python ${{ matrix.python-version }}) | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| python-version: '3.10' | ||
| tox-version: '310' | ||
| - os: ubuntu-latest | ||
| python-version: '3.11' | ||
| tox-version: '311' | ||
| - os: ubuntu-latest | ||
| python-version: '3.12' | ||
| tox-version: '312' | ||
| - os: ubuntu-latest | ||
| python-version: '3.13' | ||
| tox-version: '313' | ||
| - os: ubuntu-latest | ||
| python-version: '3.14' | ||
| tox-version: '314' | ||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| submodules: recursive | ||
| - name: Set up Python | ||
| uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1 | ||
| id: setup-python | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install tox | ||
| run: python -m pip install --upgrade tox | ||
| - name: Cache tox environments | ||
| uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 | ||
| with: | ||
| path: .tox | ||
| key: nimi-python-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('tox.ini') }} | ||
| - name: Build installers | ||
| run: tox -c tox.ini -e py${{ matrix.tox-version }}-installers | ||
| - name: Run unit tests | ||
| run: >- | ||
| mkdir -p test_results && tox -c tox.ini -e py${{ matrix.tox-version }}-test -- | ||
| --junitxml=test_results/unit-tests-${{ runner.os }}-py${{ matrix.python-version }}.xml | ||
| - name: Upload nifake unit-test coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: nifakeunittests | ||
| files: ./nifakeunittest.xml | ||
| - name: Upload nidcpower unit-test coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: nidcpowerunittests | ||
| files: ./nidcpowerunittest.xml | ||
| - name: Upload nidigital unit-test coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: nidigitalunittests | ||
| files: ./nidigitalunittest.xml | ||
| - name: Upload nimodinst unit-test coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: nimodinstunittests | ||
| files: ./nimodinstunittest.xml | ||
| - name: Upload niscope unit-test coverage | ||
|
ni-jfitzger marked this conversation as resolved.
|
||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: niscopeunittests | ||
| files: ./niscopeunittest.xml | ||
| - name: Upload nitclk unit-test coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| token: 4c58f03d-b74c-489a-889a-ab0a77b7809f | ||
| flags: nitclkunittests | ||
| files: ./nitclkunittest.xml | ||
| - name: Upload test results | ||
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | ||
| with: | ||
| name: test_results_unit_${{ runner.os }}_py${{ matrix.python-version }} | ||
| path: test_results/*.xml | ||
| if: always() | ||
This file was deleted.
Oops, something went wrong.
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
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
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
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.
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.