Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
paths:
.github/workflows/test.yml:
ignore:
- 'unknown permission scope "code-quality"'
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: just docs-latex || echo "LaTeX build completed with warnings, continuing…"
- name: Compile LaTeX document
continue-on-error: true
uses: xu-cheng/latex-action@6549dc21effb2730855a1281407ecfcececc6c1b # v4.0.0
uses: xu-cheng/latex-action@6549dc21effb2730855a1281407ecfcececc6c1b # 4.1.0
env:
XINDYOPTS: "-L english -C utf8 -M sphinx.xdy"
with:
Expand Down
31 changes: 28 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,22 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-versions) }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
lfs: true
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.python-version }}
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
- name: Test with pytest
run: just test ${{ (github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest') && '--cov=qpdk --cov-report=html --cov-report=xml' || '' }}
run: just test ${{ matrix.os == 'ubuntu-latest' && '--cov=qpdk --cov-report=html --cov-report=xml' || '' }}
- name: Upload coverage XML
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-xml-${{ matrix.python-version }}
path: coverage.xml
- name: Generate coverage badge
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
run: uv run --group dev --group github genbadge coverage -i coverage.xml -o htmlcov/coverage.svg
Expand All @@ -45,6 +52,24 @@ jobs:
with:
name: coverage-report-${{ matrix.python-version }}
path: htmlcov
upload-coverage:
needs: test-code
if: ${{ !cancelled() && needs.test-code.result == 'success' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
runs-on: ubuntu-latest
permissions:
contents: read
code-quality: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
pattern: coverage-xml-*
merge-multiple: true
- name: Upload code coverage to GitHub
uses: actions/upload-code-coverage@82c7aee3fb2ad768e00b00a0a8d749c5815085b6 # v1
with:
file: coverage.xml
language: Python
label: code-coverage/pytest
test-code-result:
runs-on: ubuntu-latest
name: Test result
Expand Down Expand Up @@ -83,7 +108,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ${{ fromJson(needs.filter-gdsfactoryplus-versions.outputs.python-versions) }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
Expand Down
Loading