Skip to content

Commit

Permalink
Enable unit tests in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Jun 1, 2024
1 parent 02687dc commit eb40707
Show file tree
Hide file tree
Showing 2 changed files with 289 additions and 174 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ on:
branches:
- main
jobs:
pre-deploy-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade
pip install poetry
poetry install --no-interaction --no-ansi --dev
- name: Test with pytest
run: pip install pytest pytest-cov
pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

deploy:
name: Deploy app
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit eb40707

Please sign in to comment.