-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added release file and editing test.yml
- Loading branch information
Showing
4 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,49 @@ | ||
name: CI - Run Unit Tests | ||
name: CI - Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
name: Run Tests | ||
name: Run Unit Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repository | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e . | ||
python -m pip install -r requirements.txt | ||
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' | ||
- name: Run 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 | ||
python -m unittest tests/test_TFL.py # Replace with an actual test file in your 'tests' directory |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.4 |
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