Skip to content

Commit

Permalink
chore: Update CI to also run integration tests but standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
iwishiwasaneagle committed Jan 26, 2023
1 parent 2651c8b commit aa867ce
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
pytest-flags: ["--only-integration", ""]
python-version:
- "3.10"
- "3.11"
codecov: [false]
include:
- python-version: "3.11"
- pytest-flags: ""
- codecov: true
steps:

- uses: actions/checkout@v3
Expand Down Expand Up @@ -53,10 +59,15 @@ jobs:

# Don't use tox as caching does not work reliably. Maybe re-visit this in the future.
- name: Run tests
run: pytest --cov-report=xml --cov-branch --cov jdrones --cov-report term-missing
run: pytest \
--cov-report=xml \
--cov-branch \
--cov jdrones \
--cov-report term-missing \
${{ matrix.pytest-flags }}

- uses: codecov/codecov-action@v3.1.1
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' }} && ${{ matrix.codecov }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml,./coverage.info
Expand Down

0 comments on commit aa867ce

Please sign in to comment.