diff --git a/.github/workflows/server-tests.yaml b/.github/workflows/server-tests.yaml new file mode 100644 index 00000000..4ae22e88 --- /dev/null +++ b/.github/workflows/server-tests.yaml @@ -0,0 +1,30 @@ +name: Server tests + +on: + pull_request: + paths: + - ".github/workflows/server-tests.yaml" + - "server/**" + +jobs: + run_tests: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.9 + - name: Loading cache. + uses: actions/cache@v2 + id: model_cache + with: + path: ~/.cache/huggingface/ + key: models + - name: Install dependencies + run: | + make install-server + pip install pytest + - name: Run tests (shard) + run: | + pytest -sv server/tests