Skip to content

Avoid stashing

Avoid stashing #36

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