Skip to content

Commit 90f0ce6

Browse files
authored
Switch to GitHub Actions (#18)
Adjust builds to target Python 3.6 through 3.11. Python 3.12 and 3.13 are tested but not checked; Python 2.7 through 3.4 are not tested but _should_ still work.
1 parent cf38a2c commit 90f0ce6

File tree

4 files changed

+98
-145
lines changed

4 files changed

+98
-145
lines changed

.github/workflows/ci.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow will install Python dependencies, run tests across multiple
2+
# Python versions, and lints things with a single version of Python.
3+
# For more information see:
4+
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
5+
---
6+
name: CI
7+
8+
on: # yamllint disable-line rule:truthy
9+
push:
10+
branches:
11+
- "master"
12+
pull_request:
13+
branches:
14+
- "*"
15+
16+
jobs:
17+
tests:
18+
runs-on: ubuntu-20.04
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
23+
allowed-to-fail: [false]
24+
include:
25+
- python-version: "3.12"
26+
allowed-to-fail: true
27+
- python-version: "3.13"
28+
allowed-to-fail: true
29+
name: "Build and Test: Python ${{ matrix.python-version }}"
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: "Set up Python ${{ matrix.python-version }}"
35+
uses: actions/setup-python@v4
36+
continue-on-error: ${{ matrix.allowed-to-fail }}
37+
with:
38+
python-version: "${{ matrix.python-version }}"
39+
40+
- name: Install dependencies
41+
continue-on-error: ${{ matrix.allowed-to-fail }}
42+
run: |
43+
pip install -r requirements-dev.txt
44+
pip install -e .
45+
46+
- name: Run tests
47+
continue-on-error: ${{ matrix.allowed-to-fail }}
48+
run: |
49+
pytest
50+
51+
# A summary of all jobs and their result.
52+
# This is the only job that's required to pass (as set by branch protection
53+
# rules in repo settings) so that we don't have to update those rules when
54+
# a new job is added.
55+
check-all-jobs:
56+
if: always()
57+
needs:
58+
- tests
59+
# - lint
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Check status of all jobs.
63+
uses: re-actors/[email protected]
64+
with:
65+
jobs: ${{ toJSON(needs) }}

.gitlab-ci.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
1-
pytest == 3.1.2
2-
pytest-cov == 2.5.1
3-
sphinx == 1.6.2
4-
hypothesis == 3.11.6
1+
alabaster==0.7.13
2+
attrs==22.1.0
3+
Babel==2.11.0
4+
certifi==2024.8.30
5+
charset-normalizer==2.0.12
6+
coverage==6.2
7+
docutils==0.18.1
8+
hypothesis==5.33.2
9+
idna==3.10
10+
imagesize==1.4.1
11+
importlib-metadata==4.8.3
12+
iniconfig==1.1.1
13+
Jinja2==3.0.3
14+
MarkupSafe==2.0.1
15+
packaging==20.9
16+
pluggy==0.13.1
17+
py==1.11.0
18+
Pygments==2.14.0
19+
pyparsing==3.1.4
20+
pytest==6.2.5
21+
pytest-cov==2.5.1
22+
pytz==2024.2
23+
requests==2.27.1
24+
six==1.16.0
25+
snowballstemmer==2.2.0
26+
sortedcontainers==2.4.0
27+
Sphinx==1.6.2
28+
sphinxcontrib-serializinghtml==1.1.5
29+
sphinxcontrib-websupport==1.2.4
30+
toml==0.10.2
31+
typing-extensions==4.1.1
32+
urllib3==1.26.20
33+
zipp==3.6.0

0 commit comments

Comments
 (0)