Test if pip and pytest work in empty workspace
All checks were successful
CI / test (push) Successful in 1s

This commit is contained in:
2026-02-01 05:33:02 +00:00
parent effd7564af
commit 8ec4825de7

View File

@@ -6,29 +6,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup repo
- name: Checkout
run: |
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
echo "test" > test.txt
ls -la
- name: Run tests
run: |
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
pip3 install -e . pytest 2>&1 || echo "pip3 failed"
pytest tests/ -v 2>&1 || echo "pytest failed"