Skip to content

Change --finalize to --no-finalize to mean that you have to override … #88

Change --finalize to --no-finalize to mean that you have to override …

Change --finalize to --no-finalize to mean that you have to override … #88

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
default_python_build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# N.B. 3.9 tested by code_cov.
# 3.6 no longer working.
python-version: [3.7, 3.8]
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 .[testing]
remake version
- name: Test with nose and doctest
run: |
nosetests tests
code_cov:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.9]
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 .[testing]
remake version
- name: Flake8
run: |
flake8 --max-line-length 120 remake tests setup.py
- name: Test with nose/coverage/doctest
run: |
cd ./remake
nosetests --with-doctest *.py
cd ..
nosetests --with-coverage tests
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}