Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,37 @@ jobs:
- name: black
run: black --check --diff --color --quiet .

compile:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-alpha - 3.11", "pypy-3.8"]
pyyaml-version: ["5.1.*", "5.4.*", "6.0.*", "6.*"]
exclude:
- python-version: 2.7
pyyaml-version: 6.0.*
- python-version: 2.7
pyyaml-version: 6.*

steps:
- name: Checkout working copy
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependency
run: |
python -mpip install --upgrade pip
python -mpip install pyyaml==${{ matrix.pyyaml-version }}
- name: Build regexes.py
run: python setup.py build_regexes -i
- name: Check results
run: |
# check that _regexes exists, and .eggs does not (== setuptools used our dependency)
test -e ua_parser/_regexes.py -a ! -e .eggs

test:
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class sdist(_sdist):
zip_safe=False,
url="https://github.com/ua-parser/uap-python",
include_package_data=True,
setup_requires=["pyyaml ~= 5.4.0"],
setup_requires=["pyyaml"],
install_requires=[],
cmdclass=cmdclass,
classifiers=[
Expand Down