From 23037efa86a89cd25575b54780f21a0bd36c123e Mon Sep 17 00:00:00 2001 From: leej3 Date: Mon, 24 Jun 2024 14:13:23 +0100 Subject: [PATCH] tidy unit-tests yaml --- .github/workflows/unit-tests.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index c9d1502f..8a931597 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -3,6 +3,12 @@ name: Unit Tests on: [push, pull_request] jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 test: runs-on: ubuntu-latest @@ -11,6 +17,7 @@ jobs: python-version: [3.9] steps: + - name: Checkout repository uses: actions/checkout@v2 @@ -34,8 +41,12 @@ jobs: - name: Start ScienceBeam Docker container run: | - docker run -d --rm -p 8082:8070 elifesciences/sciencebeam-parser + docker run -d --rm -p 8070 elifesciences/sciencebeam-parser - name: Run tests run: | tox + + - name: Test packaging + run: | + tox -e .package