Revert deleted committees #6739
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 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 }} |