Skip to content

Commit

Permalink
Merge pull request #34 from python-project-templates/tkp/upd
Browse files Browse the repository at this point in the history
Small tweaks to format in github workflows
  • Loading branch information
timkpaine authored Jan 8, 2025
2 parents ea9f24b + 0ddd376 commit 81e8acd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
6 changes: 2 additions & 4 deletions js/.github/workflows/build.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: {% raw %}test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.node-version }}{% endraw %}
path: |
**/junit.xml
path: '**/junit.xml'
if: {% raw %}${{ always() }}{% endraw %}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/junit.xml
files: '**/junit.xml'
if: matrix.os == 'ubuntu-latest'

- name: Upload coverage
Expand Down
6 changes: 2 additions & 4 deletions jupyter/.github/workflows/build.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: {% raw %}test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.node-version }}{% endraw %}
path: |
**/junit.xml
path: '**/junit.xml'
if: {% raw %}${{ always() }}{% endraw %}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/junit.xml
files: '**/junit.xml'
if: matrix.os == 'ubuntu-latest'

- name: Upload coverage
Expand Down
9 changes: 1 addition & 8 deletions python/.github/workflows/build.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,15 @@ jobs:

- name: Lint
run: make lint
if: matrix.os == 'ubuntu-latest'

- name: Checks
run: make checks
if: matrix.os == 'ubuntu-latest'

- name: Build
run: make build

- name: Test
run: make coverage
if: matrix.os == 'ubuntu-latest'

- name: Upload test results (Python)
uses: actions/upload-artifact@v4
Expand All @@ -70,9 +67,7 @@ jobs:
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/junit.xml
if: matrix.os == 'ubuntu-latest'
files: '**/junit.xml'

- name: Upload coverage
uses: codecov/codecov-action@v5
Expand All @@ -81,10 +76,8 @@ jobs:

- name: Make dist
run: make dist
if: matrix.os == 'ubuntu-latest'

- uses: actions/upload-artifact@v4
with:
name: {% raw %}dist-${{matrix.os}}{% endraw %}
path: dist
if: matrix.os == 'ubuntu-latest'
6 changes: 2 additions & 4 deletions rust/.github/workflows/build.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: {% raw %}test-results-${{ matrix.os }}-${{ matrix.python-version }}{% endraw %}
path: |
**/junit.xml
path: '**/junit.xml'
if: {% raw %}${{ always() }}{% endraw %}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/junit.xml
files: '**/junit.xml'
if: matrix.os == 'ubuntu-latest'

- name: Upload coverage
Expand Down

0 comments on commit 81e8acd

Please sign in to comment.