infra: onboard on to ruff for notebook linting #1551
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
# This workflow will setup a conda build for dependency checks by pulling in the codebuild docker images | |
# and will execute only on modification of yml files for PRs and merges. | |
name: Build Conda Environment | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- feature/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Maximize build space | |
shell: bash | |
run: | | |
sudo rm -rf /usr/local/lib/android & sudo rm -rf /usr/share/dotnet & sudo rm -rf /opt/ghc | |
- uses: actions/checkout@v4 | |
- name: Setup python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11.x | |
- name: Pull Docker image | |
run: | | |
docker image pull public.ecr.aws/codebuild/local-builds:latest | |
- name: Build conda environment | |
run: | | |
./nbi/codebuild_build.sh -i public.ecr.aws/codebuild/local-builds:latest -a envs -b nbi/buildspec.yml |