Skip to content

Commit 787b7b4

Browse files
committed
Use standard reusable workflow for tests.
1 parent a754ead commit 787b7b4

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

.github/workflows/test.yml

+8-27
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
6-
build:
6+
test:
77
name: Running tests.
8-
9-
runs-on: ubuntu-latest
8+
uses: tktech/python-standard/.github/workflows/test.yml@v1
109
strategy:
1110
fail-fast: false
1211
matrix:
13-
python-version: [3.8, 3.9, "3.10", "3.11", pypy3.9]
14-
15-
steps:
16-
- uses: actions/checkout@v3
17-
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
23-
- name: Install Poetry
24-
uses: snok/install-poetry@v1
25-
26-
- name: Installing
27-
run: poetry install --no-interaction
28-
29-
- name: Running tests
30-
run: |
31-
poetry run pytest --cov=flask_babel --cov-report=xml
32-
33-
- name: Building documentation
34-
run: |
35-
cd docs && poetry run make clean && poetry run make html
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", pypy3.9]
13+
with:
14+
use_poetry: true
15+
use_sphinx: true
16+
python_version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)