Skip to content

Commit

Permalink
Move to github actions (#252)
Browse files Browse the repository at this point in the history
* Move to github actions

* Black

* Fix issue
  • Loading branch information
therve committed Mar 23, 2023
1 parent d424858 commit 2789d39
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 33 deletions.
32 changes: 0 additions & 32 deletions .azure-pipelines/all.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,35 @@
name: Run Tests

on:
pull_request:
branches:
- master

concurrency:
group: unit-${{ github.head_ref }}
cancel-in-progress: true

jobs:
test:
strategy:
matrix:
python-version: ["3.9", "3.10"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel setuptools build
- name: Install
run: pip install --disable-pip-version-check -e .[tests]
- name: Install openapi-generator
run: npm install -g @openapitools/openapi-generator-cli
- name: Test
run: pytest
4 changes: 3 additions & 1 deletion apigentools/commands/list_config.py
Expand Up @@ -90,7 +90,9 @@ def run(self):
return 1
else:
print(json.dumps(result_values))
except Exception as e: # jsonpath_ng parser really does `raise Exception`, not a more specific exception class
except (
Exception
) as e: # jsonpath_ng parser really does `raise Exception`, not a more specific exception class
log.error("Failed parsing JSONPath expression: %s", e)
return 1

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -16,6 +16,7 @@
__version__ = "{version}"
"""


# Allows the fetching of tags even from shallow clones
# https://github.com/pypa/setuptools_scm/pull/118#issuecomment-255381535
def parse_fetch_on_shallow(root):
Expand Down

0 comments on commit 2789d39

Please sign in to comment.