name: Tool tests # Every test in tools/tests, with the packages some of them need. test_place_trails.py needs the # place tool's requirements (without shapely it skips itself and still passes), and # test_elevation.py needs numpy and Pillow. This is a workflow of its own because the Validate # workflow installs no packages (tools/tests/test_audit_doc.py holds it to that). on: push: pull_request: jobs: tools: runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip cache-dependency-path: tools/place_trails.requirements.txt - run: pip install -r tools/place_trails.requirements.txt numpy Pillow - run: python -m unittest discover tools/tests -p "test_place_trails.py" # The whole directory, so that a new test file cannot be left out by a file name pattern. - run: python -m unittest discover tools/tests