Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,29 @@ jobs:
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest

pypi-install-test:
needs: test
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master')
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install from PyPI and test import
run: |
python -m pip install --upgrade pip
python -m pip install dataclass-csv
python -c "
try:
import dataclass_csv
print('✓ Successfully imported dataclass-csv from PyPI')
except ImportError as e:
print(f'✗ Failed to import: {e}')
exit(1)
"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Unit testing](https://github.com/dfurtado/dataclass-csv/actions/workflows/unit-test.yml/badge.svg)](https://github.com/dfurtado/dataclass-csv/actions/workflows/unit-test.yml)
[![Unit testing](https://github.com/dfurtado/dataclass-csv/actions/workflows/test.yml/badge.svg)](https://github.com/dfurtado/dataclass-csv/actions/workflows/test.yml)
[![pypi](https://img.shields.io/pypi/v/dataclass-csv.svg)](https://pypi.python.org/pypi/dataclass-csv)
[![Downloads](https://pepy.tech/badge/dataclass-csv)](https://pepy.tech/project/dataclass-csv)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dataclass-csv"
version = "1.4.0"
version = "1.5.0"
description = "Map CSV data into dataclasses"
readme = "README.md"
license-expression = "BSD-3-Clause"
Expand Down