8686 with :
8787 persist-credentials : false
8888 - name : Set up Python ${{ env.python_version }}
89- uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # pin@v5.5 .0
89+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # pin@v5.6 .0
9090 with :
9191 python-version : ${{ env.python_version }}
9292 cache : " pip"
@@ -109,7 +109,7 @@ jobs:
109109 with :
110110 persist-credentials : false
111111 - name : Set up Python ${{ env.python_version }}
112- uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # pin@v5.5 .0
112+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # pin@v5.6 .0
113113 with :
114114 python-version : ${{ env.python_version }}
115115 - name : Check Config
@@ -193,7 +193,6 @@ jobs:
193193 diff -u src/backend/InvenTree/schema.yml api.yaml && echo "no difference in API schema " || exit 2
194194 - name : Check schema - including warnings
195195 run : invoke dev.schema
196- continue-on-error : true
197196 - name : Extract version for publishing
198197 id : version
199198 if : github.ref == 'refs/heads/master' && needs.paths-filter.outputs.api == 'true'
@@ -203,22 +202,22 @@ jobs:
203202 echo "Version: $version"
204203 echo "version=$version" >> "$GITHUB_OUTPUT"
205204 - name : Extract settings / tags
206- run : invoke int.export-definitions --basedir src/backend/InvenTree
205+ run : invoke int.export-definitions --basedir docs
207206 - name : Upload settings
208207 uses :
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # [email protected] 209208 with :
210209 name : inventree_settings.json
211- path : src/backend/InvenTree /inventree_settings.json
210+ path : docs/generated /inventree_settings.json
212211 - name : Upload tags
213212 uses :
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # [email protected] 214213 with :
215214 name : inventree_tags.yml
216- path : src/backend/InvenTree /inventree_tags.yml
215+ path : docs/generated /inventree_tags.yml
217216 - name : Upload filters
218217 uses :
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # [email protected] 219218 with :
220219 name : inventree_filters.yml
221- path : src/backend/InvenTree /inventree_filters.yml
220+ path : docs/generated /inventree_filters.yml
222221
223222 schema-push :
224223 name : Push new schema
@@ -238,7 +237,7 @@ jobs:
238237 - name : Create artifact directory
239238 run : mkdir -p artifact
240239 - name : Download schema artifact
241- uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # pin@v4.2.1
240+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # pin@v4.3.0
242241 with :
243242 path : artifact
244243 merge-multiple : true
@@ -255,7 +254,7 @@ jobs:
255254 echo "after move"
256255 ls -la artifact
257256 rm -rf artifact
258- - uses : stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # pin@v5.1 .0
257+ - uses : stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # pin@v5.2 .0
259258 name : Commit schema changes
260259 with :
261260 commit_message : " Update API schema for ${{ env.version }} / ${{ github.sha }}"
@@ -343,8 +342,14 @@ jobs:
343342 run : python3 .github/scripts/check_migration_files.py
344343 - name : Coverage Tests
345344 run : invoke dev.test --coverage --translations
345+ - name : Upload raw coverage to artifacts
346+ uses :
actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # [email protected] 347+ with :
348+ name : coverage
349+ path : .coverage
350+ retention-days : 14
346351 - name : Upload coverage reports to Codecov
347- uses :
codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # [email protected] .0 352+ uses :
codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # [email protected] .3 348353 if : always()
349354 with :
350355 token : ${{ secrets.CODECOV_TOKEN }}
@@ -487,7 +492,7 @@ jobs:
487492 - name : Run Tests
488493 run : invoke dev.test --migrations --report --coverage --translations
489494 - name : Upload coverage reports to Codecov
490- uses :
codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # [email protected] .0 495+ uses :
codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # [email protected] .3 491496 if : always()
492497 with :
493498 token : ${{ secrets.CODECOV_TOKEN }}
@@ -554,7 +559,7 @@ jobs:
554559 chmod +rw /home/runner/work/InvenTree/db.sqlite3
555560 invoke migrate
556561
557- platform_ui :
562+ web_ui :
558563 name : Tests - Web UI
559564 runs-on : ubuntu-24.04
560565 timeout-minutes : 60
@@ -584,7 +589,7 @@ jobs:
584589 INVENTREE_DB_PASSWORD : inventree_password
585590 INVENTREE_DEBUG : true
586591 INVENTREE_PLUGINS_ENABLED : false
587- VITE_COVERAGE : true
592+ VITE_COVERAGE_BUILD : true
588593
589594 steps :
590595 -
uses :
actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] @@ -599,13 +604,13 @@ jobs:
599604 apt-dependency : postgresql-client libpq-dev
600605 pip-dependency : psycopg2
601606 - name : Set up test data
602- run : invoke dev.setup-test -iv
603- - name : Rebuild thumbnails
604- run : invoke int.rebuild-thumbnails
607+ run : |
608+ invoke dev.setup-test -iv
609+ invoke int.rebuild-thumbnails
605610 - name : Install dependencies
606- run : invoke int.frontend-compile
607- - name : Install Playwright Browsers
608- run : cd src/frontend && npx playwright install --with-deps
611+ run : |
612+ invoke int.frontend-compile
613+ cd src/frontend && npx playwright install --with-deps
609614 - name : Run Playwright tests
610615 id : tests
611616 run : cd src/frontend && npx nyc playwright test
@@ -616,24 +621,25 @@ jobs:
616621 path : src/frontend/playwright-report/
617622 retention-days : 14
618623 - name : Report coverage
619- if : always()
624+ if : github.event_name != 'pull_request'
620625 run : cd src/frontend && npx nyc report --report-dir ./coverage --temp-dir .nyc_output --reporter=lcov --exclude-after-remap false
621626 - name : Upload coverage reports to Codecov
622- uses :
codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # [email protected] .0 623- if : always()
627+ uses :
codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # [email protected] .3 628+ if : github.event_name != 'pull_request'
624629 with :
625630 token : ${{ secrets.CODECOV_TOKEN }}
626631 slug : inventree/InvenTree
627632 flags : web
628633 - name : Upload bundler info
634+ if : github.event_name != 'pull_request'
629635 env :
630636 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
631637 run : |
632638 cd src/frontend
633639 yarn install
634640 yarn run build
635641
636- platform_ui_build :
642+ web_ui_build :
637643 name : Build - Web UI
638644 runs-on : ubuntu-24.04
639645 timeout-minutes : 60
@@ -681,7 +687,7 @@ jobs:
681687 env :
682688 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
683689 - name : Upload SARIF file
684- uses : github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # pin@v3
690+ uses : github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # pin@v3
685691 with :
686692 sarif_file : results.sarif
687693 category : zizmor
0 commit comments