Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revive ci #7

Merged
merged 3 commits into from
Sep 2, 2024
Merged
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
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ charset = utf-8
indent_style = space
indent_size = 2

[*.yaml]
charset = utf-8
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ci

on:
push:
branches:
- main
pull_request:

jobs:
linux-macos:
name: test-all ${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.VERBOSE }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
# 3.12 has no pandas wheel, takes a long time to build
EXTRA: [false] # used to force includes to get included
include:
- python-version: 3.7
os: ubuntu-20.04 # oldest LTS in github actions
EXTRA: true
- python-version: '3.11'
os: ubuntu-20.04
EXTRA: true
- python-version: '3.11'
os: macos-latest
EXTRA: true

steps:

- name: checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install setuptools on python 3.12+
if: ${{ matrix.python-version >= '3.12' }}
run: |
pip install setuptools

- name: 'Install dependencies'
run: |
python -m pip install --upgrade pip
pip install . .[test]

- name: 'pytest'
run: |
make test_coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# pandas-appender

[![Build Status](https://dev.azure.com/lindahl0577/pandas-appender/_apis/build/status/wumpus.pandas-appender?branchName=main)](https://dev.azure.com/lindahl0577/pandas-appender/_build/latest?definitionId=2&branchName=main) [![Coverage](https://coveralls.io/repos/github/wumpus/pandas-appender/badge.svg?branch=main)](https://coveralls.io/github/wumpus/pandas-appender?branch=main) [![Apache License 2.0](https://img.shields.io/github/license/wumpus/pandas-appender.svg)](LICENSE)
[![build](https://github.com/wumpus/pandas-appender/actions/workflows/ci.yaml/badge.svg)](https://github.com/wumpus/pandas-appender/actions/workflows/ci.yaml)
[![coverage](https://codecov.io/gh/wumpus/pandas-appender/graph/badge.svg?token=NB8V6D5UI2)](https://codecov.io/gh/wumpus/pandas-appender)
[![Apache License 2.0](https://img.shields.io/github/license/wumpus/pandas-appender.svg)](LICENSE)

Have you ever wanted to append a bunch of rows to a Pandas DataFrame?
Turns out that it's extremely inefficient to do! For a large
Expand Down
91 changes: 0 additions & 91 deletions azure-pipelines.yml

This file was deleted.

12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
'pandas_appender',
]

test_requirements = ['pytest', 'pytest-cov', 'pytest-sugar', 'coveralls', 'numpy']
test_requirements = ['pytest', 'pytest-cov', 'pytest-sugar']

requires = [
'pandas<2' # DataFrame.append() disappears in v2
'pandas<2', # DataFrame.append() disappears in v2
'numpy<2', # apparently requires pandas 2
]

extras_require = {
'test': test_requirements, # setup no longer tests, so make them an extra
'test': test_requirements,
}

setup_requires = ['setuptools_scm']
Expand All @@ -36,7 +37,7 @@
author_email='[email protected]',
url='https://github.com/wumpus/pandas-appender',
packages=packages,
python_requires=">=3.6",
python_requires='>=3.7',
extras_require=extras_require,
setup_requires=setup_requires,
install_requires=requires,
Expand All @@ -53,12 +54,13 @@
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
#'Programming Language :: Python :: 3.5', # setuptools_scm 6 dropped Py 3.5 and somehow I can't ask for an old version?
'Programming Language :: Python :: 3.6',
#'Programming Language :: Python :: 3.6', # no longer in github actions
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
],
)