fix: dev-requirements.txt to reduce vulnerabilities #77
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
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 |