Merge pull request #78 from atlanticwave-sdx/feat/allow_filter_intf_s… #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Python dependencies, run tests and lint. | |
# | |
# For more information see: | |
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Test | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: | |
- ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Tox | |
run: | | |
pip install tox coverage | |
- name: Run tests | |
run: | | |
# Run tests and collect coverage data. | |
tox -e coverage | |
# Generate LCOV format coverage data for coveralls. | |
python -m coverage lcov -o coverage.lcov | |
- name: Send coverage data to coveralls.io | |
uses: coverallsapp/github-action@v2 | |
with: | |
flag-name: run-${{ join(matrix.*, '-') }} | |
file: coverage.lcov | |
parallel: true | |
finalize: | |
name: finalize | |
needs: test | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
steps: | |
- name: Indicate completion to coveralls.io | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true |