From 2bc4a14027af2a366dfd12c451b6d9493b6e0a3a Mon Sep 17 00:00:00 2001 From: Moses Paul R Date: Tue, 10 Dec 2024 20:25:37 +0000 Subject: [PATCH] try windows job --- .github/workflows/tests.yml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c9239f8..ab5c46b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,20 +6,44 @@ env: TORCH_DEVICE: "cpu" jobs: - build: + build-ubuntu: + name: Build on Ubuntu runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: python-version: 3.11 - - name: Install python dependencies + + - name: Install Python dependencies run: | pip install poetry poetry install + - name: Run detection benchmark test run: | poetry run python benchmark.py --max 5 --result_path results --pdftext_only - poetry run python scripts/verify_benchmark_scores.py results/results.json + poetry run python scripts/verify_benchmark_scores.py results/results.json + + build-windows: + name: Build on Windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + - name: Install Python dependencies + run: | + pip install poetry + poetry install + + - name: Run detection benchmark test + run: | + poetry run python benchmark.py --max 5 --result_path results --pdftext_only + poetry run python scripts/verify_benchmark_scores.py results/results.json