Source deploy ENVs #40
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: YAPF Style Check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
ci: | |
name: "CI setup" | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.12" | |
os: | |
- "ubuntu-latest" | |
runs-on: "${{ matrix.os }}" | |
# use bash everywhere | |
defaults: | |
run: | |
shell: "bash -l {0}" | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v4" | |
- name: Install opencv dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgl1-mesa-glx libegl1-mesa | |
- name: Install Conda environment with Micromamba | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: Zooniverse | |
environment-file: dev_environment.yml | |
cache-env: true | |
cache-downloads: true | |
- name: Run YAPF code style check | |
run: | | |
yapf -d ./*.py --style=.style.yapf 2>&1 |