Skip to content

Commit 35d99df

Browse files
committed
add workflow ci file
change python version try 3.7 update readme with github action ci badge fix url for badge add dependabot config move to github folder base add multiple python versions update versions use pytest to run test suite add requirements file run pip require requests update readme with pytest
1 parent 765daa3 commit 35d99df

File tree

5 files changed

+42
-2
lines changed

5 files changed

+42
-2
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: github-actions
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
name: Tests
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.7.13', '3.8.12', '3.9.12', '3.10.4', '3.11.0', '3.12.0']
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- run: pip install -r requirements.txt
24+
25+
- name: Run tests
26+
run: pytest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Emailable Python Library
22

33
[![Version](https://img.shields.io/pypi/v/emailable.svg)](https://pypi.org/project/emailable/)
4-
[![Build Status](https://app.travis-ci.com/emailable/emailable-python.svg)](https://app.travis-ci.com/emailable/emailable-python)
4+
![Build Status](https://github.com/emailable/emailable-python/actions/workflows/ci.yml/badge.svg)
55
[![Maintainability](https://api.codeclimate.com/v1/badges/dcb962c96795974051fc/maintainability)](https://codeclimate.com/github/emailable/emailable-python/maintainability)
66

77
This is the official python wrapper for the Emailable API.
@@ -105,7 +105,7 @@ response.reason_counts
105105
Tests can be run with the following command:
106106

107107
```shell
108-
python setup.py test
108+
pytest
109109
```
110110

111111
## Contributing

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest
2+
requests

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)