This repository has been archived by the owner on May 29, 2024. It is now read-only.
Remove round, it's in the stdlib #347
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: | |
push: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install modular CLI | |
env: | |
MODULAR_AUTH: ${{ secrets.MODULAR_AUTH }} | |
run: | | |
curl https://get.modular.com | MODULAR_AUTH="$MODULAR_AUTH" sh - | |
modular auth "$MODULAR_AUTH" | |
- name: Install mojo CLI | |
run: | | |
modular install mojo | |
- name: Install pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run pre-commit checks | |
run: | | |
export MODULAR_HOME="/home/runner/.modular" | |
export PATH="/home/runner/.modular/pkg/packages.modular.com_mojo/bin:$PATH" | |
pre-commit run --all-files |