From 3f35a59c3e5ee4412d2e73abe37cbddee66b6372 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:50:48 -0600 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 484c9afb..9241dbff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,17 +69,29 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.8 - - run: pip install --user -r requirements/dev.txt + - run: pip install montepy[doc] - run: sphinx-build doc/source/ doc/build/ -W --keep-going -E - run: sphinx-build -b html doc/source/ doc/build/html - uses: actions/upload-artifact@v3 with: - name: test - path: test_report.xml + name: website + path: doc/build/html + + format-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user -r requirements/dev.txt + - run: black --check montepy/ tests/ deploy-pages: - needs: [build, test] + needs: [build, test, doc-test, format-test] permissions: pages: write # to deploy to Pages