diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 692cb18b..c52c7048 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: with: python-version: "3.12" cache: 'pip' - cache-dependency-path: 'dev-requirements.txt' + cache-dependency-path: 'pyproject.toml' - name: Cache Playwright browsers uses: actions/cache@v4 with: @@ -25,7 +25,7 @@ jobs: key: ${{ runner.os }}-browsers - name: Install dependencies run: | - pip install -r dev-requirements.txt + pip install -e . playwright install - name: Run test run: | diff --git a/.gitignore b/.gitignore index 66a56d97..ec449727 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,7 @@ tools.json gathered_links.json colophon.html index.html +*.egg-info/ +__pycache__/ +*.pyc +.pytest_cache/ diff --git a/TOOLS_GUIDE.md b/TOOLS_GUIDE.md index 466b664e..46b07a59 100644 --- a/TOOLS_GUIDE.md +++ b/TOOLS_GUIDE.md @@ -29,7 +29,7 @@ ├── gather_links.py # Collects tool metadata ├── README.md # Main listing of all tools ├── build.sh # Build script -├── dev-requirements.txt # pytest-playwright +├── pyproject.toml # Python project config and dependencies └── .gitignore ``` @@ -449,7 +449,7 @@ def test_open_image(page: Page, static_server): ### Running Tests ```bash # Install dependencies -pip install -r dev-requirements.txt +pip install -e . playwright install # Run all tests @@ -516,6 +516,7 @@ jobs: with: python-version: "3.12" cache: 'pip' + cache-dependency-path: 'pyproject.toml' - name: Cache Playwright browsers uses: actions/cache@v4 with: @@ -523,7 +524,7 @@ jobs: key: ${{ runner.os }}-browsers - name: Install dependencies run: | - pip install -r dev-requirements.txt + pip install -e . playwright install - name: Run test run: pytest