This commit is contained in:
@@ -6,13 +6,29 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Debug vars
|
- name: Setup repo
|
||||||
run: |
|
run: |
|
||||||
echo "GITEA_REPO_NAME=$GITEA_REPO_NAME"
|
mkdir -p json_to_openapi tests examples
|
||||||
- name: Clone
|
- name: Download setup.py
|
||||||
|
run: curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/setup.py -o setup.py
|
||||||
|
- name: Download pyproject.toml
|
||||||
|
run: curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/pyproject.toml -o pyproject.toml
|
||||||
|
- name: Download requirements.txt
|
||||||
|
run: curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/requirements.txt -o requirements.txt
|
||||||
|
- name: Download package files
|
||||||
run: |
|
run: |
|
||||||
git clone "https://gitea.com/${GITEA_REPO_NAME}.git" .
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/__init__.py -o json_to_openapi/__init__.py
|
||||||
- name: Install
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/cli.py -o json_to_openapi/cli.py
|
||||||
run: pip3 install -e . pytest
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/analyzer.py -o json_to_openapi/analyzer.py
|
||||||
- name: Test
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/generator.py -o json_to_openapi/generator.py
|
||||||
run: pytest tests/ -v
|
- name: Download test files
|
||||||
|
run: |
|
||||||
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/tests/test_type_inference.py -o tests/test_type_inference.py
|
||||||
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/tests/test_schema_generator.py -o tests/test_schema_generator.py
|
||||||
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/tests/test_cli.py -o tests/test_cli.py
|
||||||
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/tests/test_integration.py -o tests/test_integration.py
|
||||||
|
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/tests/__init__.py -o tests/__init__.py
|
||||||
|
- name: Install and test
|
||||||
|
run: |
|
||||||
|
pip3 install -e . pytest
|
||||||
|
pytest tests/ -v
|
||||||
|
|||||||
Reference in New Issue
Block a user