Moving random
constructors, NDArray Constructor changes & New unit tests
#7
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
name: Run pre-commit | |
on: | |
# Run pre-commit on pull requests | |
pull_request: | |
# Add a workflow_dispatch event to run pre-commit manually | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
timeout-minutes: 30 | |
defaults: | |
run: | |
shell: bash | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Download Modular installer | |
run: | | |
curl -s https://get.modular.com | sh - | |
- name: Set path Mojo | |
run: | | |
modular install mojo | |
echo "MODULAR_HOME=/home/runner/.modular" >> $GITHUB_ENV | |
echo "/home/runner/.modular/pkg/packages.modular.com_mojo/bin" >> $GITHUB_PATH | |
- name: Install pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run pre-commit | |
run: pre-commit run --all-files |