Skip to content

People update tn 2024-08-19-03-49 #5989

People update tn 2024-08-19-03-49

People update tn 2024-08-19-03-49 #5989

Workflow file for this run

name: Lint YAML
on:
push:
branches:
- main
paths:
- "data/**"
- "settings.yml"
- ".yamllint"
- "poetry.lock"
- "pyproject.toml"
- ".github/workflows/lint-yaml.yml"
pull_request:
branches:
- main
paths:
- "data/**"
- "settings.yml"
- ".yamllint"
- "poetry.lock"
- "pyproject.toml"
- ".github/workflows/lint-yaml.yml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
# Python & dependency installation
- uses: actions/checkout@v3
- name: Yaml file linting
run: |
docker run --rm \
-v $(pwd):/code \
registry.gitlab.com/pipeline-components/yamllint:latest \
-s .
- name: setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install Poetry
uses: snok/[email protected]
- name: cache Poetry virtualenv
uses: actions/cache@v3
id: cache
with:
path: ~/.virtualenvs/
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: set poetry config path
run: poetry config virtualenvs.path ~/.virtualenvs
- name: install dependencies
run: poetry install
# if: steps.cache.outputs.cache-hit != 'true'
- name: lint people
run: poetry run os-people lint
env:
OS_PEOPLE_DIRECTORY: ${{ env.GITHUB_WORKSPACE }}
- name: lint committees
run: poetry run os-committees lint
env:
OS_PEOPLE_DIRECTORY: ${{ env.GITHUB_WORKSPACE }}