Skip to content

Commit

Permalink
Merge pull request #60 from Deeptechia/main
Browse files Browse the repository at this point in the history
Sync with deeptechia
  • Loading branch information
kelyacf authored Jun 10, 2024
2 parents bed9d7e + 80de050 commit 400ac76
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/tests-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: PaulHatch/[email protected]
- uses: actions/setup-python@v5

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Run Python
run: python --version

- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: install requirements
run: |
pip install -r requirements.txt
python --version
- name: Run Test
run: |
python -m xmlrunner discover tests -v -o test_reports
pytest -v --cov=./ tests/ --cov-report=html
- name: Publish Test Results
uses: mikepenz/action-junit-report@v4
Expand All @@ -34,3 +47,12 @@ jobs:
report_paths: 'test_reports/*.xml'
detailed_summary: true
include_passed: true


- name: Archive Test Reports
uses: actions/upload-artifact@v4 # Uploads artifacts (test reports) for access from the GitHub UI
if: always() # This step will also run regardless of the success or failure of previous steps
with:
name: test-reports # Name of the artifact
path: htmlcov/*.html # Path to the test reports to be archived
compression-level: 0 # no compression
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ python-dotenv = "^1.0.0"
slack-bolt = "^1.18.1"
slack-sdk = "^3.26.1"
Pillow = "^10.1.0"
google-generativeai = "^0.5.0"
google-generativeai = "^0.6.0"
IPython = "^8.0.0"
unittest-xml-reporting = "^3.2.0"

Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ slack-bolt>=1.18.1
slack-sdk>=3.26.1
pillow>=10.1.0
google-generativeai>=0.5.0
IPython>=8.0.0
unittest-xml-reporting>=3.2.0
pytest>=8.2.0
pytest-cov>=5.0.0
flake8>=7.0.0

0 comments on commit 400ac76

Please sign in to comment.