Skip to content

Commit

Permalink
Merge pull request #164 from scrapinghub/gh-actions
Browse files Browse the repository at this point in the history
Enable github actions
  • Loading branch information
lopuhin committed Dec 12, 2020
2 parents bf103f5 + 5f52d7d commit 4ae4f5f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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: Python package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '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 -r requirements-dev.txt
- name: tox
run: |
tox -e `python -c "import sys; print('py' + ''.join(sys.version.split('.')[:2]))"`
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py34, py35, py36, py37
envlist = py27, py35, py36, py37, py38, py39

[testenv]
deps =
Expand Down

0 comments on commit 4ae4f5f

Please sign in to comment.