Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Install pre-commit as a prereq for dag doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound committed Dec 14, 2022
1 parent 0ece868 commit 38c1ca7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,26 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get Python version
id: python-version
run: echo "value=$(just py-version)" >> "$GITHUB_OUTPUT"

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "${{ steps.python-version.outputs.value }}"

- name: Cache pre-commit envs
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Install pre-commit
# This is required for the DAG doc check step only. If that step gets split out,
# this and the above steps setting up python are not needed for tests.
run: pip install pre-commit

- name: Change permissions for Docker steps
run: chmod -R 777 openverse_catalog/ tests/

Expand Down

0 comments on commit 38c1ca7

Please sign in to comment.