From 640bcba8735a07eb5412903d99717b652eb6b9b0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 22 Aug 2023 22:47:33 -0500 Subject: [PATCH] ci: nox >>>> --- .github/workflows/docs.yml | 7 ++----- .github/workflows/release.yml | 2 +- noxfile.py | 4 +++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1b2120..92ace86 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,13 +19,10 @@ jobs: python-version: 3.11 cache: true - - name: Setup Project - run: pdm install + - run: pip install nox - name: Build Docs - run: | - FORCE_COLOR=1 make svgs - make docs + run: nox -s svgs docs - name: Upload artifact uses: actions/upload-pages-artifact@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3a67d6..1c12250 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: 🚀 Release on: push: tags: - - 'v*.*.*' + - 'v*.*' permissions: contents: write diff --git a/noxfile.py b/noxfile.py index d1ec47a..d1e538c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -29,7 +29,9 @@ def typecheck(session): @nox.session def svgs(session): pdm_install(session, "docs") - session.run("./scripts/generate-svgs.py", external=True) + session.run( + "./scripts/generate-svgs.py", external=True, env={"FORCE_COLOR": "true"} + ) @nox.session