From 787b7b4d5d61559e954c61ae66f29031679b2a32 Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Tue, 18 Jun 2024 03:02:23 -0400 Subject: [PATCH] Use standard reusable workflow for tests. --- .github/workflows/test.yml | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 302c342..0995f3d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,35 +1,16 @@ name: Tests -on: [push, pull_request] +on: [push] jobs: - build: + test: name: Running tests. - - runs-on: ubuntu-latest + uses: tktech/python-standard/.github/workflows/test.yml@v1 strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, "3.10", "3.11", pypy3.9] - - steps: - - uses: actions/checkout@v3 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install Poetry - uses: snok/install-poetry@v1 - - - name: Installing - run: poetry install --no-interaction - - - name: Running tests - run: | - poetry run pytest --cov=flask_babel --cov-report=xml - - - name: Building documentation - run: | - cd docs && poetry run make clean && poetry run make html + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", pypy3.9] + with: + use_poetry: true + use_sphinx: true + python_version: ${{ matrix.python-version }}