From 034ce4d754ddada908cbd96438b2c59ad9420744 Mon Sep 17 00:00:00 2001 From: Chuck McCallum Date: Tue, 26 Nov 2024 14:46:36 -0500 Subject: [PATCH] Run end-to-end with minimal deps --- .github/workflows/test.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d1638a..7682961 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,22 +27,28 @@ jobs: - name: Install flit run: pip install flit - - name: Install package - run: flit install + - name: Install production deps + run: flit install --deps production - - name: Check CLI - # TODO: This won't catch most missing dependencies. - run: dp-wizard --help - - - name: Install dev dependencies - run: pip install -r requirements-dev.txt + - name: Install subset of test deps + run: + pip install pytest pytest-playwright - name: Install browsers # Install just one browser instead of the default three. # https://playwright.dev/python/docs/browsers#managing-browser-binaries run: playwright install chromium - - name: Test + - name: Run end-to-end test + # We want to make sure there aren't hidden dependencies + # on dev tools in production code, and that it still works + # when dependencies aren't pinned. + run: pytest -k test_app + + - name: Install dev dependencies + run: pip install -r requirements-dev.txt + + - name: Run full tests run: ./ci.sh - uses: actions/upload-artifact@v4