Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI_build.yml #7

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ on:

jobs:

thorough_check:
name: Thorough code check / python-3.8 / ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Python info
run: |
which python
python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Show pip list
run: |
pip list
- name: Run test with coverage
run: pytest --cov --cov-report term --cov-report xml
- name: Check style against standards using prospector
run: prospector -o grouped -o pylint:pylint-report.txt

basic_checks:
name: Basic code checks / python-${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -15,6 +40,10 @@ jobs:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7', '3.8']
exclude:
# already tested in first_check job
- python-version: 3.8
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -32,6 +61,6 @@ jobs:
- name: Show pip list
run: |
pip list
- name: Run unit tests
- name: Run tests
run: |
pytest