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

Migrate to GitHub Actions #114

Merged
merged 2 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
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
51 changes: 51 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build
on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
test:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
os:
- macos
- ubuntu

name: tests
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3.0.2

- uses: actions/setup-python@v4.2.0
with:
python-version: ${{ matrix.python-version }}

- run: pip install .

- name: run tests
run: python setup.py test

fuzz:
name: fuzz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2

- uses: actions/setup-python@v4.2.0
with:
python-version: "3.10"

- run: pip install .

- name: run fuzz
run: python test_fuzz.py ./*.py
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion test_autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,6 @@ def test_is_literal_or_name(self):

self.assertFalse(autoflake.is_literal_or_name('xyz.prop'))
self.assertFalse(autoflake.is_literal_or_name(' '))
self.assertFalse(autoflake.is_literal_or_name(' 1'))

def test_is_python_file(self):
self.assertTrue(autoflake.is_python_file(
Expand Down