feat(lib): improve Sionna scenes support #467
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lint code and (optionally) apply fixes | |
name: Lint code | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
schedule: | |
- cron: 0 0 * * 1 # Every monday | |
workflow_dispatch: | |
jobs: | |
auto-update: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install pre-commit | |
run: pip install pre-commit | |
- name: Run autoupdate | |
run: pre-commit autoupdate | |
- name: Create a pull request with updated versions | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: update/pre-commit-hooks | |
title: 'chore(deps): update pre-commit hooks' | |
commit-message: 'chore(deps): update pre-commit hooks' | |
labels: | | |
ci | |
dependencies | |
pre-commit: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'schedule' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rye | |
if: matrix.os != 'windows-latest' | |
env: | |
RYE_INSTALL_OPTION: --yes | |
run: | | |
curl -sSf https://rye.astral.sh/get | bash | |
echo "$HOME/.rye/shims" >> $GITHUB_PATH | |
- name: Configure Rye | |
shell: bash | |
run: rye config --set-bool behavior.use-uv=true | |
- name: Install Rust nightly | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy,rustfmt | |
- name: Install dependencies | |
run: rye sync | |
- name: Run pre-commit hooks | |
run: rye run pre-commit run --all-files | |
- name: Apply fixes when present | |
uses: pre-commit-ci/lite-action@v1.0.2 | |
if: always() | |
with: | |
msg: 'chore(fmt): auto fixes from pre-commit hooks' |