Normalise the SBR score #1
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: Lint and test | |
on: [push] | |
env: | |
PYTHONPATH: . | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
id: setup-python | |
with: | |
python-version: "3.11" | |
- name: Install Pipenv | |
run: pip install pipenv | |
- name: Cache virtualenvs | |
uses: actions/cache@v2 | |
with: | |
path: ~/.local/share/virtualenvs/ | |
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} | |
- name: Setup gdal C binaries | |
run: | | |
sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update | |
sudo apt-get install gdal-bin | |
sudo apt-get install libgdal-dev | |
export CPLUS_INCLUDE_PATH=/usr/include/gdal | |
export C_INCLUDE_PATH=/usr/include/gdal | |
gdal-config --version | |
- name: Start SSH to install private repo | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.FARADAY_GENERATIVE_MODEL_PIPELINE_DEPLOY_KEY }} | |
- name: Install Faraday Generative Model Repo | |
run: | | |
pipenv install "git+ssh://[email protected]/centrefornetzero/[email protected]" | |
- name: Sync pipenv | |
run: | | |
pipenv sync --dev | |
pipenv run pip freeze | |
- name: Cache Pre-commit for format checking | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Check formatting | |
run: pipenv run pre-commit run --all-files --show-diff-on-failure | |
# - name: Run pytest | |
# run: pipenv run pytest |