Skip to content

Commit

Permalink
ci: Update if block
Browse files Browse the repository at this point in the history
  • Loading branch information
nfelt14 committed Mar 28, 2024
1 parent 8042e69 commit 033f1e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
test-fast:
runs-on: ${{ matrix.os_name }}-latest
env:
REPO_NAME: ${{ inputs.repo-name || 'tm_devices' }}
REPO_NAME: tektronix/${{ inputs.repo-name || 'tm_devices' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -76,9 +76,7 @@ jobs:
python-version: x # any version
check-latest: true
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox coverage
run: python -m pip install tox
- name: Test
run: tox -ve tests
- uses: actions/upload-artifact@v4
Expand All @@ -90,13 +88,12 @@ jobs:
.coverage*
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ github.repository == 'tektronix/tm_devices' && !cancelled() }}
if: ${{ github.repository == env.REPO_NAME && !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./.coverage_tests.xml
name: codecov-${{ matrix.os_name }}
fail_ci_if_error: true
verbose: true
publish-test-results:
if: ${{ !cancelled() }}
needs: test-fast
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ jobs:
with:
python-version: '3.11' # This needs to stay in sync with .readthedocs.yml and pyproject.toml
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
run: python -m pip install tox
- name: Test
run: tox -ve ${{ matrix.tox_env }}
- uses: thedoctor0/[email protected]
Expand Down

0 comments on commit 033f1e1

Please sign in to comment.