Files
rfd/.github/workflows/tests.yml
Dave Gallant 740312ee42 Add PyPI publish action (#91)
* Add PyPI publish action

* Use poetry

* Bump version to 0.7.0
2021-05-02 10:16:34 -04:00

26 lines
679 B
YAML

name: Tests
on: [pull_request]
jobs:
build:
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry==1.1.6
poetry install
- name: Run pre-commit
run: |
git diff --name-only $TRAVIS_COMMIT_RANGE | xargs poetry run pre-commit run --files
- name: Test
run: poetry run make ci