Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
459 commits
Select commit Hold shift + click to select a range
86acc45
Update to 2.1.3dev0 for dev work
willkg Mar 2, 2018
138e5d7
Rework tests
willkg Mar 2, 2018
8f79858
Merge pull request #353 from willkg/tests-cleanup
willkg Mar 2, 2018
5882861
Merge all the clean tests into one file and clean up
willkg Mar 3, 2018
18ecceb
Correct a regression comment and fix a test I misunderstood
willkg Mar 3, 2018
c9fa0ed
Merge pull request #354 from willkg/more-test-cleanup
willkg Mar 3, 2018
d580f0a
Fix MANIFEST and data_to_json.py related to recent changes
willkg Mar 3, 2018
e7f83b8
Merge pull request #355 from willkg/fix-test-data
willkg Mar 4, 2018
73dfef1
Fix url sanitizing
willkg Mar 3, 2018
61bf0e6
Fix errant comment
willkg Mar 5, 2018
c5df578
Merge pull request #356 from willkg/fix-entities
willkg Mar 5, 2018
9584f42
Prep for 2.1.3 release
willkg Mar 5, 2018
3e9b9ec
Add tests for sanitizing urls in css properties
willkg Mar 6, 2018
e19904e
Merge pull request #358 from willkg/css-tests
willkg Mar 6, 2018
28e7c32
Handle ambiguous ampersands correctly
willkg Mar 16, 2018
9818ffb
Add regression test with character entity in url
willkg Mar 18, 2018
975f23e
Merge pull request #360 from willkg/ambiguous-ampersand-fix
willkg Mar 19, 2018
a65f5c8
Update CHANGES
willkg Mar 19, 2018
3f2270e
Handle nonexistent namespaces better
willkg Mar 19, 2018
fd72ac3
Merge pull request #361 from willkg/352-keyerror
willkg Mar 20, 2018
46fa500
Convert entities in CSS values before sanitizing
willkg Mar 22, 2018
b5ad857
Merge pull request #364 from willkg/363-style-entity
willkg Apr 9, 2018
d49d98d
Merge branch 'master' into rm-3.3
willkg Jun 7, 2018
797b6cb
Merge pull request #336 from hugovk/rm-3.3
willkg Jun 7, 2018
f1f04f6
Nix pinning in dev requirements
willkg Jun 7, 2018
8f6c2ea
Change requirements.txt to requirements-dev.txt
willkg Jun 7, 2018
63076f4
Fix lint and docs tox environments
willkg Jun 7, 2018
9959a1a
Update CHANGES re: Python 3.3 support
willkg Jun 7, 2018
b8aae56
Fix requirements file name in travis
willkg Jun 7, 2018
e1a6ba2
Merge pull request #372 from willkg/371-reqs-updates
willkg Jun 7, 2018
9319ec7
Fix error when parsing invalid URI
antoineleclair Jun 29, 2018
9aeabd7
Merge pull request #378 from antoineleclair/fix-invalid-uri-error
willkg Jul 16, 2018
8f88b41
Sync travis and tox environments
willkg Jul 20, 2018
99d3a34
Merge pull request #383 from willkg/sync-travis-tox
willkg Jul 20, 2018
9960da4
Update for v2.1.4 release
willkg Aug 16, 2018
8a06cc8
Merge pull request #385 from willkg/release-2.1.4
willkg Aug 16, 2018
ff6e5c5
Update for 2.1.5 development
willkg Aug 16, 2018
a507a4e
Drop easy_install instructions
willkg Aug 27, 2018
f5fa97b
Merge pull request #388 from willkg/373-easy_install
willkg Aug 27, 2018
7970857
vendor html5lib 1.0.1
willkg Aug 26, 2018
45abd92
Update .travis.yml file regarding html5lib
willkg Aug 26, 2018
f2aa0af
Add hash for html5lib; add review instructions
willkg Aug 27, 2018
ba37abe
Add vendor verify
willkg Aug 28, 2018
a06cd77
Merge pull request #387 from willkg/vendor-html5lib
willkg Aug 28, 2018
b07814e
Extract all html5lib things into a shim module
willkg Aug 28, 2018
78e06f7
Add serializer tests; improve comments and changes
willkg Sep 4, 2018
e443cbb
Merge pull request #389 from willkg/html5lib-shim
willkg Sep 4, 2018
614f4ef
Fix ids for regression tests
willkg Sep 4, 2018
15286b1
Merge pull request #390 from willkg/fix-ids
willkg Sep 5, 2018
6b05f3c
Fix regressions from Bleach 2.0 rewrite
willkg Sep 4, 2018
173202f
Fix BleachHTMLTokenizer.__init__ to do less
willkg Sep 18, 2018
d3366bc
Fix typos and make QUOTEY_THINGS a set
willkg Sep 18, 2018
a708fb8
Clear stream history once a tag has been found
willkg Sep 18, 2018
73d08b2
Drop get_recent_tag_string()
willkg Sep 18, 2018
a6b14bd
Merge pull request #391 from willkg/280-regression-fix
willkg Sep 19, 2018
0cc95b4
Move security text higher in README; fix typo
willkg Sep 27, 2018
c27512d
Merge pull request #393 from willkg/readme-tweak
willkg Sep 27, 2018
f967428
Tweak BleachHTMLTokenizer to use a set
willkg Oct 2, 2018
6b25f6c
Adjust how we import things from constants
willkg Oct 2, 2018
bea164a
Fix linkifier regarding non-tags
willkg Oct 2, 2018
25cab18
Merge pull request #394 from willkg/392-linkify-fix
willkg Oct 2, 2018
03bdafe
Update for 3.0.0 release
willkg Oct 2, 2018
dd7a97a
Merge pull request #395 from willkg/3_0_0-prep
willkg Oct 3, 2018
8b36980
This disables auto-release
willkg Oct 3, 2018
344df3a
Merge pull request #396 from willkg/disable-autorelease
willkg Oct 3, 2018
fc1369f
Fix token['data'] usage in error handling
willkg Oct 4, 2018
e2539e2
Merge pull request #399 from willkg/398-fix
willkg Oct 4, 2018
be2f3cc
Add abbr to HTML_TAGS
willkg Oct 5, 2018
d796f53
Fix vendor_verify.sh script to clean up after itself if successful
willkg Oct 5, 2018
4278434
Flesh out comments in vendor_verify script
willkg Oct 5, 2018
49dab41
Merge pull request #401 from willkg/400-fix
willkg Oct 5, 2018
2052f00
Fix vendor_verify.sh problems with RECORD
willkg Oct 8, 2018
cfd0be5
Add Python 3.7 environment to tox and Travis
willkg Oct 8, 2018
45f55d6
Update CHANGES and setup.py
willkg Oct 8, 2018
901cdaa
Merge pull request #405 from willkg/377-fix
willkg Oct 8, 2018
fc33199
Prep for 3.0.1 release
willkg Oct 9, 2018
32edf71
Merge pull request #407 from willkg/3_0_1_prep
willkg Oct 9, 2018
c0474ef
Update release process
willkg Oct 9, 2018
a39f7d6
Merge pull request #408 from willkg/update-release-process
willkg Oct 9, 2018
6847f4a
Merge Characters tokens
willkg Oct 10, 2018
fca551b
Fix lint issues
willkg Oct 10, 2018
44202d5
Add test with anchor
willkg Oct 11, 2018
96e8a28
Merge pull request #410 from willkg/374-linkifyfilter
willkg Oct 11, 2018
34bd066
Prep for 3.0.2 release
willkg Oct 11, 2018
e0b280b
Merge pull request #411 from willkg/3_0_2-prep
willkg Oct 11, 2018
e05edfc
Define a full list of valid elements for HTML_TAGS
Deimos Oct 11, 2018
6f16fec
fixed docs on callback location
jvanasco Oct 16, 2018
335ea11
Merge pull request #415 from jvanasco/fix-docs
willkg Oct 16, 2018
d445230
Clarify source of HTML tag list, fix discrepancies
Deimos Oct 17, 2018
5c72a54
Fix regex strings--they should be marked raw
willkg Oct 25, 2018
f8ea2de
Merge pull request #417 from willkg/fix-re-strings
willkg Oct 29, 2018
bdb2865
setup.py: six >=1.9 is required. (#416)
dave-shawley Oct 29, 2018
9728fd0
Merge branch 'master' into linkify-valid-elements
willkg Oct 29, 2018
26fb1da
Merge pull request #412 from Deimos/linkify-valid-elements
willkg Dec 12, 2018
83738b9
Add recognized_tags to Linker arguments
willkg Dec 12, 2018
bf1076f
Merge pull request #423 from willkg/409-linkify-tags
willkg Dec 13, 2018
821a0ff
Update for 3.0.3 development
willkg Dec 13, 2018
33c4a23
Drop invalid attribute names (#419)
willkg Dec 28, 2018
4a4c495
Add note to CHANGES
willkg Dec 31, 2018
3097fd3
Merge pull request #427 from willkg/419-quote
willkg Jan 2, 2019
8d7fd48
Convert & to & as a Characters token
willkg Dec 13, 2018
93a060e
Merge pull request #429 from willkg/422-amp
willkg Jan 4, 2019
cb156cb
Fix parsing "meta" tag with encoding attribute
willkg Jan 8, 2019
cabd665
Merge pull request #432 from willkg/431-charencoding
willkg Jan 8, 2019
245c21c
Fix doctest failures
willkg Jan 8, 2019
948b745
Merge pull request #433 from willkg/357-doctest
willkg Jan 9, 2019
ad910ce
Update for 3.1.0 release
willkg Jan 8, 2019
2f210e0
Merge pull request #435 from willkg/3_1_0_release
willkg Jan 9, 2019
4b16619
fix #426 (#434)
sekineh Jan 18, 2019
4bb6d9a
Fix style tests
willkg Jan 18, 2019
613d64a
Merge pull request #437 from willkg/fix-style-test
willkg Jan 18, 2019
a130d9a
Add Mozilla Code of Conduct file
Mar 28, 2019
ef5a8a9
Merge pull request #441 from Mozilla-GitHub-Standards/master
g-k Apr 1, 2019
b776610
Simplify tox configuration
jdufresne Apr 12, 2019
f6ccf66
Merge pull request #444 from jdufresne/tox
g-k Apr 12, 2019
43f8a57
Remove u string prefix in files with unicode_literals
jdufresne Apr 12, 2019
90a6ac5
Merge pull request #443 from jdufresne/u-prefix
g-k Apr 12, 2019
0454160
Add pypy3 testing to tox and Travis
jdufresne Apr 12, 2019
39eedc3
Merge pull request #445 from jdufresne/pypy3
g-k Apr 12, 2019
b154688
Fix ResourceWarning emitted during tests
jdufresne Apr 13, 2019
c2ef33b
Merge pull request #448 from jdufresne/test-warnings
g-k Apr 15, 2019
df28d50
Fix ResourceWarnings emitted from setup.py
jdufresne Apr 13, 2019
b5b5967
Merge pull request #447 from jdufresne/setup-py-warnings
g-k Apr 19, 2019
b5ebc86
Use set literals
jdufresne Apr 13, 2019
77e1acd
Merge pull request #446 from jdufresne/set-literals
g-k Apr 22, 2019
d804b24
Update PyPI link to new location
jdufresne Apr 21, 2019
47fe22e
Merge pull request #451 from mozilla/pypi
g-k Apr 29, 2019
2769334
Make the documentation reproducible.
lamby Aug 7, 2019
d1a2d7b
Merge pull request #465 from lamby/reproducible-build
g-k Sep 5, 2019
dab32d5
Stop using deprecated Travis container environment
jdufresne Aug 20, 2019
cabee8d
Merge pull request #469 from mozilla/travis-sudo
g-k Sep 5, 2019
ad3bae8
Fix typo
zborboa-g Aug 16, 2019
2c1833a
Fix typo
zborboa-g Aug 16, 2019
bcb63a2
Fix typo
zborboa-g Aug 16, 2019
d4ec341
Merge pull request #470 from mozilla/typo-fixes
g-k Sep 5, 2019
7d29a8c
Correct typo: bleach.clean(user_bio} → bleach.clean(user_bio)
jdufresne Jun 10, 2019
a975ff4
Merge pull request #471 from mozilla/doc-typo-fixes
g-k Sep 5, 2019
f336af3
docs: add IDN homograph attacks to goals and linkify
Sep 5, 2019
fe9b533
Merge pull request #476 from mozilla/doc-homograph-attacks
g-k Sep 9, 2019
b75f2e4
require pytest <5
Sep 5, 2019
e9f64b6
Merge pull request #474 from mozilla/467-fix-pytest-5-error
g-k Sep 25, 2019
3ed1394
docs: Add linkify Linker examples using custom TLDs and protocols
Sep 5, 2019
62fd85c
docs: Add linkify TLD encoding example for localized TLDs
Sep 5, 2019
c317021
Merge pull request #473 from mozilla/add-tld-example-to-docs
g-k Sep 25, 2019
f0306aa
Fix tox.ini to run doctests in docs
willkg Sep 25, 2019
0b85bb5
Fix docs pass in CI to use python 3.6
willkg Sep 25, 2019
dbb8574
Merge pull request #481 from willkg/run-doctests
g-k Sep 25, 2019
31ee817
Remove references to IRC
willkg Nov 10, 2019
4ffb3b3
Merge pull request #484 from willkg/482-irc
g-k Nov 11, 2019
3ad258e
Add Python 3.8 to the test matrix
jdufresne Nov 11, 2019
e86ecbe
Merge pull request #490 from mozilla/py38
g-k Dec 3, 2019
2490760
Support pytest5 syntax for tests
mastizada Oct 16, 2019
c32eef3
Merge pull request #491 from mozilla/pytest5-fix
g-k Dec 3, 2019
a8f7323
Added failing test
bope Jul 5, 2019
6ba1dd0
Check parser.tags before trying to iterate
bope Jul 5, 2019
92769bc
Fixed 'expected-closing-tag-but-got-char' not to enter if tags=None
bope Sep 25, 2019
8ef23f5
Merge pull request #493 from mozilla/parser-tags-nonetype-exception
g-k Dec 3, 2019
f2e3728
Create SECURITY.md
g-k Dec 3, 2019
6617608
Merge pull request #494 from mozilla/g-k-patch-1
g-k Dec 3, 2019
567eb46
Add build_email_re() and use list of TLDs
pc-coholic Nov 22, 2019
0503863
docs: add build_email_re with tlds example
Dec 5, 2019
bf6236e
Merge pull request #496 from mozilla/build_email_re
g-k Dec 5, 2019
02a22a0
Add missing quote
sblondon Dec 11, 2019
27bac8e
Merge pull request #498 from sblondon/patch-1
g-k Dec 11, 2019
3c525ac
Fix simple typo: curren -> current
timgates42 Dec 21, 2019
e368056
Merge pull request #505 from timgates42/bugfix/typo_current
g-k Dec 23, 2019
c3c74a6
Drop deprecated 'setup.py test' support
jdufresne Jan 5, 2020
804cc10
Merge pull request #507 from jdufresne/setup-test
g-k Jan 6, 2020
575de68
Add relative link to code of conduct
dbxnr Jan 11, 2020
2f3bbe3
Merge pull request #511 from dbxnr/master
g-k Feb 7, 2020
a8af49e
Test on PyPy 7
hugovk Jan 28, 2020
8d416c5
Drop support for EOL Python 3.4
hugovk Jan 28, 2020
996cde7
fix bug 1615315
Feb 13, 2020
0d88dd8
Update for v3.1.1 release
Feb 13, 2020
f77e0f6
fix bug 1615315
Feb 13, 2020
e0ad450
Update for v3.1.1 release
Feb 13, 2020
e4e9e21
fix bug 1621692
Mar 11, 2020
7b625ff
add wheel to requirements-dev
Mar 11, 2020
78a0672
Update for v3.1.2 release
Mar 11, 2020
175f677
fix bug 1621692
Mar 11, 2020
3f39d48
add wheel to requirements-dev
Mar 11, 2020
59cc502
Update for v3.1.2 release
Mar 11, 2020
e4b1c50
Update for v3.1.3 release
Mar 17, 2020
fc77027
Merge branch 'v3.1.0-branch'
Mar 17, 2020
d6018f2
fix bug 1623633
Mar 23, 2020
6e74a50
Update for v3.1.4 release
Mar 23, 2020
2df82b5
fix long line lint failure bleach/sanitizer.py L601
Mar 26, 2020
b7240ab
Replace setuptools dependency with packaging.
benjaminp Apr 28, 2020
366e79e
Update for v3.1.5 release
Apr 29, 2020
2d41050
update tests_website terminology
graingert Jul 24, 2020
a9ff437
vendor: update vendored html5lib to v1.1
Sep 8, 2020
4d3ef66
update invalid attr name sanitization for html5lib 1.1
Sep 15, 2020
26f7b16
suppress html5lib deprecation warnings
Sep 15, 2020
7c11170
update changelog, contributors, and set dev version
Sep 15, 2020
fecb496
add hashin to requirements-dev.txt
Sep 15, 2020
b54c78e
vendor: add pip version used to vendor readme
Sep 15, 2020
17dceaf
Update for v3.2.0 release
Sep 16, 2020
29a6f72
add tests for void tags #488
Sep 16, 2020
692b15f
Update issue templates
g-k Sep 16, 2020
d565606
add DEFAULT_CALLBACKS to linkifier
mitar Jan 6, 2020
1f93bbe
update CHANGES, CONTRIBUTORS, and set dev version
Sep 16, 2020
103c16d
scripts: add format and format-check test modes
Sep 16, 2020
b048560
add format-check to tox and CI
Sep 16, 2020
da0eb4b
format bleach code and tests ignoring _vendor
Sep 16, 2020
56d4a75
flake8 ignore E203 whitespace before :
Sep 16, 2020
c4a98da
upgrade html5lib deprecation warnings to errors
Sep 17, 2020
38122ef
suppress html5lib sanitizer deprecation warnings
Sep 17, 2020
f5971aa
Update for v3.2.1 release
Sep 18, 2020
263675d
Test on GitHub Actions
hugovk Jan 28, 2020
29dc1fc
Lint on GitHub Actions
hugovk Jan 28, 2020
49b3e43
Update and simplify GHA config
hugovk Sep 14, 2020
caed8b5
ci: remove travis
Jan 5, 2021
1d13e9f
docs: replace travis ci badges with GHA
Jan 5, 2021
0f5b25c
docs: replace travis refs in dev docs and tox comment
Jan 5, 2021
a4ed4d2
tests_website: bump to current bleach version
Jan 5, 2021
eb8aebd
linkify: fix IndexError in convert_entity
Jan 20, 2021
c66edfd
Merge pull request #572 from mozilla/fix-indexerror
g-k Jan 20, 2021
90cb80b
Update for v3.2.2 release
Jan 20, 2021
6879f6a
html5lib_shim: validate unicode points for convert_entity
Jan 25, 2021
612b808
Update for v3.2.3 release
Jan 25, 2021
cd838c3
Merge pull request #579 from mozilla/validate-convert-entity-code-points
g-k Jan 26, 2021
10b1c5d
vendor: add html5lib-1.1.dist-info/REQUESTED
Jan 26, 2021
491abb0
fix typo s/vnedoring/vendoring/
Jan 26, 2021
c045a8b
Merge pull request #581 from mozilla/nit-fixes
g-k Jan 26, 2021
1334134
sanitizer: escape HTML comments
Jan 28, 2021
842fcb4
Update for v3.3.0 release
Jan 29, 2021
79b7a3c
Merge pull request from GHSA-vv2x-vrpj-qqpq
g-k Feb 1, 2021
d398c89
tests: add tests for more eject tags for GHSA-vv2x-vrpj-qqpq
Feb 2, 2021
c48bf50
Merge pull request #585 from mozilla/bug-1689399-test-more-eject-tags
g-k Feb 2, 2021
45f3de7
Remove duplicated h1 in changelog
McSinyx Feb 20, 2021
3e5d6aa
Merge pull request #586 from McSinyx/change-head-dup
g-k Feb 22, 2021
8da3105
Update bug-report.md
g-k Jun 24, 2021
ee775e2
Update tox.ini
g-k Jun 24, 2021
1c16d17
scripts: fail tox vendorverify target when tree diff fails
Jul 14, 2021
5992266
tox: bump lint and vendorverify python to 3.8
Jul 14, 2021
ef0a2fa
docs: add vendorverify and artifact verification to release process
Jul 14, 2021
bf4c67a
Fix attribute name in linkify docs.
mike-oakley Jul 14, 2021
76021fa
Merge pull request #601 from mozilla/fix-598-verify-vendor
g-k Jul 14, 2021
cf313fa
Update for v3.3.1 release
Jul 14, 2021
99579a9
Merge pull request #602 from mozilla/prepare-3.3.1
g-k Jul 14, 2021
ea1849a
Update dev.rst
g-k Jul 14, 2021
45144d9
Merge pull request #600 from CheesyFeet/patch-1
g-k Aug 3, 2021
e96c8d7
drop EOL pythons from tox, setup.py, and ci
Nov 5, 2020
ae196a3
tests_website: remove six, bump version, update open script
Nov 5, 2020
23d1397
drop security support for bleach 3.x versions
Nov 5, 2020
783029f
remove six usage, __future__.unicode_literals, compat functions
Nov 5, 2020
4d8a2e0
drop object from class definitions
Jan 25, 2021
275a51c
bump major version and update releasedate
Nov 5, 2020
5537128
update CHANGES and CONTRIBUTORS
Nov 5, 2020
ad0004f
Merge pull request #605 from mozilla/4.0.0-branch
g-k Aug 3, 2021
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
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: bug report
about: Create a report to a bug or regression
title: 'bug: '
labels: untriaged
assignees: ''

---

**Describe the bug**

A clear and concise description of what the bug is. [e.g. "`bleach.clean` does not escape script tag contents"]

** python and bleach versions (please complete the following information):**

- Python Version: [e.g. 3.8.2]
- Bleach Version: [e.g. 3.2.0]

**To Reproduce**

Steps to reproduce the behavior:

[e.g. ```python
>>> bleach.clean("><script>alert("XSS")</script>&")
"><script>alert("XSS")</script>&"
```]

**Expected behavior**

[e.g. ```python
>>> bleach.clean("><script>alert("XSS")</script>&")
'&gt;"&gt;&lt;script&gt;alert("XSS")&lt;/script&gt;&amp;'
```]

**Additional context**

Add any other context about the problem here.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: feature request
about: Suggest an idea for this project
title: 'feature: '
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**

A clear and concise description of what you want to happen.

Does this feature modify an existing method e.g. `clean`, `linkify`?

If you have an implementation in mind include an example call and output [e.g. ```python
>>> bleach.clean(always_error=True)
Exception("always raise exception enabled")
```]

**Describe alternatives you've considered**

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**

Add any other context or screenshots about the feature request here.
40 changes: 40 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lint

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.8]
os: [ubuntu-latest]
mode: [lint, vendorverify, docs]

steps:
- uses: actions/checkout@v2

- name: Cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py')
}}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-

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

- name: Install dependencies
run: |
python -m pip install -U pip setuptools>=18.5
python -m pip install -r requirements-dev.txt

- name: Tests
shell: bash
run: ./scripts/run_tests.sh ${{ matrix.mode }}
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, pypy3]
os: [ubuntu-18.04, ubuntu-16.04, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2

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

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py')
}}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-

- name: Install dependencies
run: |
python -m pip install -U pip setuptools>=18.5
python -m pip install -r requirements-dev.txt

- name: Tests
shell: bash
run: ./scripts/run_tests.sh
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ pip-log.txt
.coverage
dist
*.egg-info
.noseids
build
.tox
docs/_build/
.cache/
.eggs/
.*env*/
.pytest_cache/
.python-version
*~
*.swp
__pycache__
venv/
.idea/
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

Loading