Test if pip and pytest work in empty workspace
All checks were successful
CI / test (push) Successful in 1s
All checks were successful
CI / test (push) Successful in 1s
This commit is contained in:
@@ -6,29 +6,11 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup repo
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
mkdir -p json_to_openapi tests examples
|
echo "test" > test.txt
|
||||||
- name: Download setup.py
|
ls -la
|
||||||
run: curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/setup.py -o setup.py
|
- name: Run tests
|
||||||
- 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: |
|
||||||
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/__init__.py -o json_to_openapi/__init__.py
|
pip3 install -e . pytest 2>&1 || echo "pip3 failed"
|
||||||
curl -s https://gitea.com/7000pctAUTO/json-to-openapi/raw/branch/main/json_to_openapi/cli.py -o json_to_openapi/cli.py
|
pytest tests/ -v 2>&1 || echo "pytest failed"
|
||||||
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