-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
cf38a2c
commit 90f0ce6
Showing
4 changed files
with
98 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# This workflow will install Python dependencies, run tests across multiple | ||
# Python versions, and lints things with a single version of Python. | ||
# For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
--- | ||
name: CI | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] | ||
allowed-to-fail: [false] | ||
include: | ||
- python-version: "3.12" | ||
allowed-to-fail: true | ||
- python-version: "3.13" | ||
allowed-to-fail: true | ||
name: "Build and Test: Python ${{ matrix.python-version }}" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: actions/setup-python@v4 | ||
continue-on-error: ${{ matrix.allowed-to-fail }} | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
|
||
- name: Install dependencies | ||
continue-on-error: ${{ matrix.allowed-to-fail }} | ||
run: | | ||
pip install -r requirements-dev.txt | ||
pip install -e . | ||
- name: Run tests | ||
continue-on-error: ${{ matrix.allowed-to-fail }} | ||
run: | | ||
pytest | ||
# A summary of all jobs and their result. | ||
# This is the only job that's required to pass (as set by branch protection | ||
# rules in repo settings) so that we don't have to update those rules when | ||
# a new job is added. | ||
check-all-jobs: | ||
if: always() | ||
needs: | ||
- tests | ||
# - lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check status of all jobs. | ||
uses: re-actors/[email protected] | ||
with: | ||
jobs: ${{ toJSON(needs) }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
pytest == 3.1.2 | ||
pytest-cov == 2.5.1 | ||
sphinx == 1.6.2 | ||
hypothesis == 3.11.6 | ||
alabaster==0.7.13 | ||
attrs==22.1.0 | ||
Babel==2.11.0 | ||
certifi==2024.8.30 | ||
charset-normalizer==2.0.12 | ||
coverage==6.2 | ||
docutils==0.18.1 | ||
hypothesis==5.33.2 | ||
idna==3.10 | ||
imagesize==1.4.1 | ||
importlib-metadata==4.8.3 | ||
iniconfig==1.1.1 | ||
Jinja2==3.0.3 | ||
MarkupSafe==2.0.1 | ||
packaging==20.9 | ||
pluggy==0.13.1 | ||
py==1.11.0 | ||
Pygments==2.14.0 | ||
pyparsing==3.1.4 | ||
pytest==6.2.5 | ||
pytest-cov==2.5.1 | ||
pytz==2024.2 | ||
requests==2.27.1 | ||
six==1.16.0 | ||
snowballstemmer==2.2.0 | ||
sortedcontainers==2.4.0 | ||
Sphinx==1.6.2 | ||
sphinxcontrib-serializinghtml==1.1.5 | ||
sphinxcontrib-websupport==1.2.4 | ||
toml==0.10.2 | ||
typing-extensions==4.1.1 | ||
urllib3==1.26.20 | ||
zipp==3.6.0 |