Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Tsuyoshi Hombashi <[email protected]>
  • Loading branch information
thombashi committed Jan 1, 2025
1 parent b1363da commit aad2310
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,24 @@ jobs:
tox.ini
- name: Setup env
run: echo "COVERAGE_FILE=.coverage_${{ matrix.os }}_${{ matrix.python-version }} " >> $GITHUB_ENV
id: env
run: |
echo "COVERAGE_FILE=.coverage_${{ matrix.os }}_${{ matrix.python-version }} " >> $GITHUB_ENV
echo "coverage-file=$COVERAGE_FILE" >> $GITHUB_OUTPUT
- run: make setup-ci

- name: Run tests
env:
PYTEST_DISCORD_WEBHOOK: ${{ secrets.PYTEST_DISCORD_WEBHOOK }}
run: tox -e cov -- --discord-verbose=0
run: tox -e cov

- run: ls -a

- uses: actions/upload-artifact@v4
with:
name: coverage
name: cov_${{ matrix.os }}
include-hidden-files: true
path: .coverage_*

upload-coverage:
Expand All @@ -142,7 +146,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: coverage
name: cov_ubuntu-latest,cov_macos-latest,cov_windows-latest
path: artifact

- name: List
Expand Down Expand Up @@ -188,7 +192,7 @@ jobs:
- name: Install packages
run: |
make setup
make setup-dev
python -m pip install --upgrade --disable-pip-version-check pandas pytablereader[excel] XlsxWriter
- run: make run-sample
2 changes: 1 addition & 1 deletion requirements/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytablereader>=0.31.3
pytablewriter>=0.50
pytest>=6.0.1
pytest-discord>=0.1.6
# pytest-discord>=0.1.6
pytest-md-report>=0.6.2
beautifulsoup4>=4.10
2 changes: 1 addition & 1 deletion simplesqlite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""

import simplesqlite.query # type: ignore
import simplesqlite.query # noqa: F401

from .__version__ import __author__, __copyright__, __email__, __license__, __version__
from ._func import append_table, copy_table
Expand Down
2 changes: 1 addition & 1 deletion simplesqlite/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sqlite3
from typing import Any, Optional

from tabledata import NameValidationError # noqa: W0611
from tabledata import NameValidationError # noqa: F401


class DatabaseError(sqlite3.DatabaseError):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ commands =
pyright simplesqlite setup.py
codespell simplesqlite docs/pages test -q2 --check-filenames --ignore-words-list te -x "test/data/python - Wiktionary.html"
ruff format --check setup.py test simplesqlite
ruff check setup.py test simplesqlite
ruff check setup.py simplesqlite

[testenv:lint-examples]
extras =
Expand Down

0 comments on commit aad2310

Please sign in to comment.