Skip to content

get Scarlet working in CI #1235

get Scarlet working in CI

get Scarlet working in CI #1235

Workflow file for this run

name: lint
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Checkout github repo
uses: actions/checkout@v2
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
# galsim needs this.
- name: Install FFTW
run: |
sudo apt-get install libfftw3-dev
- name: Install poetry dependencies
run: |
poetry install --with scarlet
- name: Install Scarlet
run: |
pip install "pybind11[global]"
git clone https://github.com/pmelchior/scarlet.git
cd scarlet; python setup.py install; cd ..
- name: Run black
run: |
poetry run black --check btk
- name: Run isort
run: |
poetry run isort --check btk
- name: Run pydocstyle
run: |
poetry run pydocstyle btk
- name: Run flake8
run: |
poetry run flake8 btk
- name: Run pylint
run: |
poetry run pylint btk