From c3a14cecc1066fd448721d4410b93a8238c512b0 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 8 Jan 2021 17:22:15 +0900 Subject: [PATCH 1/2] try --- .github/workflows/tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ea0b29b3..d88fdb0b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -35,9 +35,11 @@ jobs: - name: Run tests env: TESTDB: actions.cnf + PIP_NO_PYTHON_VERSION_WARNING: 1 + PIP_DISABLE_PIP_VERSION_CHECK: 1 run: | pip install -U coverage pytest pytest-cov - pip install . + python setup.py develop pytest --cov=MySQLdb tests - uses: codecov/codecov-action@v1 From 6332f119b05ddb2e0609ddef7c1811409f8e7f13 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 8 Jan 2021 17:24:04 +0900 Subject: [PATCH 2/2] Split step --- .github/workflows/tests.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d88fdb0b..5d45b6a5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,14 +32,18 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Run tests + - name: Install dependencies env: - TESTDB: actions.cnf PIP_NO_PYTHON_VERSION_WARNING: 1 PIP_DISABLE_PIP_VERSION_CHECK: 1 run: | pip install -U coverage pytest pytest-cov python setup.py develop + + - name: Run tests + env: + TESTDB: actions.cnf + run: | pytest --cov=MySQLdb tests - uses: codecov/codecov-action@v1