From 5e7df233e6670460815b4ae769ac89914caf3998 Mon Sep 17 00:00:00 2001 From: Alixe Langshall Date: Tue, 7 May 2024 20:47:27 -0700 Subject: [PATCH] Cache pip dependencies. --- .github/workflows/pynblint.yml | 9 ++++++--- requirements.txt | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/pynblint.yml b/.github/workflows/pynblint.yml index e4bb526..b688a9a 100644 --- a/.github/workflows/pynblint.yml +++ b/.github/workflows/pynblint.yml @@ -16,9 +16,12 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - # Install pynblint + - uses: actions/setup-python@v5 + with: + python-version: '3.9' + cache: 'pip' # caching pip dependencies + - name: Install Dependencies - run: sudo pip install pynblint - sudo pip install lxml[html_clean] + run: pip install -r requirements.txt - name: Linter Output run: pynblint -y $GITHUB_WORKSPACE diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..550c9dd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pynblint +lxml[html_clean] \ No newline at end of file