Skip to content

EP-2625 Review Redshift linker #1

EP-2625 Review Redshift linker

EP-2625 Review Redshift linker #1

name: Update comparison symlinks
on:
pull_request_target:
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true && github.repository == 'moj-analytical-services/splink'
runs-on: ubuntu-20.04
# only run this workflow on the upstream
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v3
with:
ref: master
token: ${{ secrets.SPLINK_TOKEN }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Load cached Poetry installation
uses: actions/cache@v2
with:
path: ~/.local # the path depends on the OS
key: poetry-0 # increment to reset cache
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-lint-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-00
- name: Install linting dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --only linting
#--------------------------------------------#
# create pseudo symlinks where appropriate #
#--------------------------------------------#
- name: Run benchmark and comment
run: |
source .venv/bin/activate
chmod +x ./scripts/pseudo_symlink_cls.sh
./scripts/pseudo_symlink_cls.sh
chmod +x ./scripts/find_replace_txt.sh
./scripts/find_replace_txt.sh
shell: bash
#----------------------#
# commit any changes #
#----------------------#
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update comparison symlinks
branch: master
file_pattern: '*comparison*'