Skip to content

Commit

Permalink
Run end-to-end with minimal deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Nov 26, 2024
1 parent 006643a commit 034ce4d
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 034ce4d

Please sign in to comment.