Skip to content

Merge pull request #116 from Skelmis/dependabot/pip/setuptools-70.0.0 #214

Merge pull request #116 from Skelmis/dependabot/pip/setuptools-70.0.0

Merge pull request #116 from Skelmis/dependabot/pip/setuptools-70.0.0 #214

Workflow file for this run

# This workflow will install Python dependencies and run tests
name: "Pytest"
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coverage coveralls
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Run tests with code coverage
run: |
coverage run --source=antispam/ -m pytest
- name: Upload Coverage
run: |
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
coveralls:
name: Coveralls
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}