This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
build(deps): bump the ui-deps group in /src/ui with 3 updates (#652) #1787
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- ".github/**" | |
- "!.github/actions/build-ui/**" | |
- "!.github/workflows/test-ui.yaml" | |
- "pyproject.toml" | |
- "src/**" | |
- "tests/**" | |
- "!src/ui/package.json" | |
- "!src/ui/package-lock.json" | |
- "!src/ui/static/**" | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: Python ${{ matrix.python-version }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.9", "3.10"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache torch-hub downloads | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/torch | |
key: ${{ runner.os }}-torch-hub | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Base Dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install --upgrade tox virtualenv | |
- name: Download weights | |
run: | | |
python -m scripts.download_weights | |
- name: Run tests on ${{ matrix.os }} with python ${{matrix.python-version }} | |
run: | | |
tox -e py | |
- name: Make coverage report | |
run: | | |
tox -e coverage |