Skip to content

Merge pull request #51 from AntoineMarnat/patch-2 #82

Merge pull request #51 from AntoineMarnat/patch-2

Merge pull request #51 from AntoineMarnat/patch-2 #82

Workflow file for this run

name: build
on: [push]
jobs:
check-format:
name: Check python format with black
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.7"]
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install dependancies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Check python format
run: black --check campbot
test:
name: Test on python ${{ matrix.python_version }}
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install dependancies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Run python tests
run: pytest --cov campbot --cov-report=term