Minor bug fixes - fixed a proxy issue in EsriConnector and data downl… #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - Run Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Print Working Directory | |
run: pwd # Confirm current working directory | |
- name: List All Files | |
run: ls -R # Show all files to confirm where 'tests' is located | |
- name: Run Unit Tests | |
env: | |
PYTHONPATH: . # Add root directory to PYTHONPATH for imports | |
run: | | |
python -m unittest discover -s ./tests -p "test_*.py" # Discover and run tests in 'tests' | |
# Run a single test file as a backup in case of discovery issues | |
- name: Run Single Test (Fallback) | |
if: failure() | |
run: | | |
python -m unittest discover -s ./tests -p "test_TFL.py" # Replace with an actual test file in your 'tests' directory |