diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f8b1e37 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +--- +name: ci + +on: + push: + branches: [master] + pull_request: + branches: [master] + workflow_dispatch: + schedule: + - cron: '41 4 * * 4' # weekly on thursday morning + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - '2.7' + # Python 3.4 on GHA doesn't work due to fastdiff==0.2.0 failing with: + # pkg_resources.DistributionNotFound: The 'setuptools_scm>=1.15.0' distribution was not found and is required by the application + #- '3.4' + - '3.5' + - '3.7' + - '3.9' + steps: + - uses: actions/checkout@v2 + - run: python -m pip install --upgrade pip + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Poetry + run: | + pip install poetry==1.0.10 + - name: Install dependencies + run: | + poetry install + - name: Lint + run: | + make lint + - name: Test + run: | + make test diff --git a/.travis.yml b/.travis.yml index 0954bb3..2a7716a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,7 @@ os: linux language: python python: -- "2.7" - "3.4" -- "3.7" -- "3.9" install: - pip install poetry==1.0.10