From fc1685a414343ac64a6db062a920934e5000c07b Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 28 Feb 2024 18:48:26 +0900 Subject: [PATCH] fix workflow Signed-off-by: Inada Naoki --- .github/workflows/test.yml | 10 ++++++---- requirements-dev.txt | 3 +++ tox.ini | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57b4122..ba4c1e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,10 +15,12 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python }} + python-version: ${{ matrix.python-version }} + cache: "pip" + cache-dependency-path: requirements-dev.txt - name: Install dependencies - run: python -m pip install --upgrade tox + run: python -m pip install -r requirements-dev.txt - name: Run tests - run: tox -e py + run: pytest --cov=fluent diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..3707664 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,3 @@ +pytest +pytest-cov +msgpack diff --git a/tox.ini b/tox.ini index a0e2c95..14634e9 100644 --- a/tox.ini +++ b/tox.ini @@ -6,5 +6,6 @@ skip_missing_interpreters = True [testenv] deps = pytest + pytest-cov msgpack -commands = pytest -v +commands = pytest --cov=fluent