mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 21:35:09 +00:00
ci(deps): bump actions/checkout from 4 to 6 (#223) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci(deps): bump actions/upload-pages-artifact from 3 to 4 (#225) Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci(deps): bump actions/upload-artifact from 4 to 6 (#224) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci(deps): bump actions/configure-pages from 4 to 5 (#222) Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 4 to 5. - [Release notes](https://github.com/actions/configure-pages/releases) - [Commits](https://github.com/actions/configure-pages/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/configure-pages dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
68 lines
2.5 KiB
YAML
68 lines
2.5 KiB
YAML
name: CI Check
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
jobs:
|
|
registry-check:
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
# Fix Unicode encoding issue on Windows runner (cp1252 -> utf-8)
|
|
PYTHONIOENCODING: utf-8
|
|
PYTHONUTF8: 1
|
|
|
|
defaults:
|
|
run:
|
|
shell: cmd
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Miniforge
|
|
uses: conda-incubator/setup-miniconda@v3
|
|
with:
|
|
miniforge-version: latest
|
|
use-mamba: true
|
|
channels: robostack-staging,conda-forge,uni-lab
|
|
channel-priority: flexible
|
|
activate-environment: check-env
|
|
auto-update-conda: false
|
|
show-channel-urls: true
|
|
|
|
- name: Install ROS dependencies, uv and unilabos-msgs
|
|
run: |
|
|
echo Installing ROS dependencies...
|
|
mamba install -n check-env conda-forge::uv conda-forge::opencv robostack-staging::ros-humble-ros-core robostack-staging::ros-humble-action-msgs robostack-staging::ros-humble-std-msgs robostack-staging::ros-humble-geometry-msgs robostack-staging::ros-humble-control-msgs robostack-staging::ros-humble-nav2-msgs uni-lab::ros-humble-unilabos-msgs robostack-staging::ros-humble-cv-bridge robostack-staging::ros-humble-vision-opencv robostack-staging::ros-humble-tf-transformations robostack-staging::ros-humble-moveit-msgs robostack-staging::ros-humble-tf2-ros robostack-staging::ros-humble-tf2-ros-py conda-forge::transforms3d -c robostack-staging -c conda-forge -c uni-lab -y
|
|
|
|
- name: Install pip dependencies and unilabos
|
|
run: |
|
|
call conda activate check-env
|
|
echo Installing pip dependencies...
|
|
uv pip install -r unilabos/utils/requirements.txt
|
|
uv pip install pywinauto git+https://github.com/Xuwznln/pylabrobot.git
|
|
uv pip uninstall enum34 || echo enum34 not installed, skipping
|
|
uv pip install -e .
|
|
|
|
- name: Run check mode (complete_registry)
|
|
run: |
|
|
call conda activate check-env
|
|
echo Running check mode...
|
|
python -m unilabos --check_mode --skip_env_check
|
|
|
|
- name: Check for uncommitted changes
|
|
shell: bash
|
|
run: |
|
|
if ! git diff --exit-code; then
|
|
echo "::error::检测到文件变化!请先在本地运行 'python -m unilabos --complete_registry' 并提交变更"
|
|
echo "变化的文件:"
|
|
git diff --name-only
|
|
exit 1
|
|
fi
|
|
echo "检查通过:无文件变化"
|