diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..15e8f14 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: ci + +on: [push, pull_request] + +jobs: + build: + name: Running python ${{ matrix.python-version }} on ${{matrix.os}} + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Update pip, setuptools + wheel + run: | + python -m pip install --upgrade pip setuptools wheel + + - name: Install flake8-bugbear w/dev extra install + run: | + python -m pip install .[dev] + + - name: Run Unittests + run: | + coverage run tests/test_bugbear.py + coverage report -m + + - name: Check formatting + run: | + black --check . \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 966cf65..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -language: python -cache: pip -dist: bionic - -matrix: - fast_finish: true - include: - - python: 3.6 - - python: 3.7 - - python: 3.8 - - python: 3.9 - - python: nightly - allow_failures: - - python: nightly - -install: - - pip install --upgrade pip setuptools wheel - - pip install -e .[dev] - -script: - - coverage run tests/test_bugbear.py - - coverage report -m - - black --check .