Configure Renovate #98
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: Validate Pull Request | |
on: | |
pull_request: | |
jobs: | |
deploy: | |
name: Validate Pull Request (unit tests) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
function: | |
- execute_rest_extractor | |
- oee_timeseries | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Load cached $HOME/.local | |
uses: actions/cache@v2 | |
with: | |
path: ~/.local | |
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/deploy-pr.yaml') }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.1.10 | |
virtualenvs-path: .venv | |
installer-parallel: true | |
- name: Load cached poetry venv | |
id: cached-poetry-venv | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/deploy-pr.yaml') }} | |
- name: Install dependencies using poetry (skipped on cache hit) | |
run: poetry install | |
if: steps.cached-poetry-venv.outputs.cache-hit != 'true' |