This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
Add TailwindCSS plugin for Prettier & ESLint (#611) #1709
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@v3 | |
- 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 |