update readme #1493
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: 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: | | |
poetry run pip install "pybind11[global]" peigen pybind11 | |
git clone https://github.com/pmelchior/scarlet.git; cd scarlet; poetry run python setup.py install | |
- name: Run pre-commit | |
run: | | |
poetry run pre-commit install | |
poetry run pre-commit run --all-files | |
- name: Run Ruff | |
run: poetry run ruff check --output-format=github btk/ tests/ |