Skip to content

Commit ed9182d

Browse files
authored
Merge pull request #5 from emailable/github_actions
Github Actions
2 parents 765daa3 + e8f0cc8 commit ed9182d

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', '3.8', '3.9', '3.10', '3.11', '3.12']
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)