Skip to content

Commit

Permalink
add test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller committed Dec 2, 2024
1 parent 517f030 commit a4c4686
Show file tree
Hide file tree
Showing 18 changed files with 436 additions and 293 deletions.
Binary file modified .coverage
Binary file not shown.
24 changes: 24 additions & 0 deletions .github/workflows/gh-pages.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,36 @@ jobs:
DTC_HEADLES: true
steps:
- uses: actions/checkout@v3

# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'

# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]" # Install package with test dependencies
pip install pytest-html # Install additional test dependencies
pip install pytest pytest-cov
# Setup and generate site
- name: setup
run: chmod +x dtcw
- name: generateSite
run: ./dtcw generateSite

# Run tests and generate reports
- name: Run tests with coverage
run: python run_tests_html.py

- name: copyToPublic
run: cp -r ./build/microsite/output ./public

# Deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gh-pages.yml.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GitHub Actions workflow for running tests and deploying to GitHub Pages
Empty file modified .github/workflows/run-tests.yml
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ dist/*
# ignore all files in the .idea directory
.idea/*

.gradle/*
.gradle/*

venv/*

.coverage
Loading

0 comments on commit a4c4686

Please sign in to comment.