From 38eb94642baba3001d9323dc8f93b18681fa0ed6 Mon Sep 17 00:00:00 2001 From: Lewis Derbyshire Date: Sat, 9 Dec 2023 22:13:29 +0000 Subject: [PATCH] Use requirements.txt in ci build (#143) Automate the build, as currently if any requirements change they wouldnt be included in the build without updating the ci.yaml too Co-authored-by: Gabriel Seltzer --- .github/workflows/ci.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a1dc5fe60..17d936429 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ -name: ci +name: ci on: push: - branches: + branches: - main permissions: contents: write @@ -13,10 +13,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - run: pip install mkdocs - - run: pip install mkdocs-material - - run: pip install mkdocs-glightbox + - run: pip install -r requirements.txt - run: sudo apt-get install imagemagick pngquant - run: find . -name '*.png' -execdir bash -c 'mogrify -resize 750x "$1"' - {} \; - run: find . -name '*.png' -execdir bash -c 'pngquant "$1" --ext .png --force' - {} \; - - run: mkdocs gh-deploy --force \ No newline at end of file + - run: mkdocs gh-deploy --force