Skip to content

Commit

Permalink
chore(ci): Add integration tests step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rfsbraz committed Apr 5, 2024
1 parent 9cc1ebd commit 127d146
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- "develop"

jobs:
ci:
unit_tests:
runs-on: ubuntu-latest
permissions:
# Gives the action the necessary permissions for publishing new
Expand Down Expand Up @@ -40,12 +40,35 @@ jobs:
pip install -r requirements.txt
- name: Test with pytest
run: |
coverage run -m pytest
coverage run -m pytest -m "not integration"
coverage report
coverage xml
- name: Test with pytest
run: |
coverage run -m pytest -m integration
coverage report
coverage xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

integration_tests:
needs: unit_tests
runs-on: ubuntu-latest
steps:
# Purges github badge cache
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest -m integration

0 comments on commit 127d146

Please sign in to comment.