This commit is contained in:
@@ -6,13 +6,29 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Debug vars
|
||||
- name: Setup repo
|
||||
run: |
|
||||
echo "GITEA_REPO_NAME=$GITEA_REPO_NAME"
|
||||
- name: Clone
|
||||
mkdir -p json_to_openapi tests examples
|
||||
- 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: |
|
||||
git clone "https://gitea.com/${GITEA_REPO_NAME}.git" .
|
||||
- name: Install
|
||||
run: pip3 install -e . pytest
|
||||
- name: Test
|
||||
run: pytest tests/ -v
|
||||
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/__init__.py -o json_to_openapi/__init__.py
|
||||
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/cli.py -o json_to_openapi/cli.py
|
||||
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/analyzer.py -o json_to_openapi/analyzer.py
|
||||
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/generator.py -o json_to_openapi/generator.py
|
||||
- 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