Skip to content

Commit

Permalink
Migrated to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
superbobry committed Oct 11, 2021
1 parent 910a114 commit 9104e16
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

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

jobs:
build-and-test:
name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "pypy-3.7"]

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
set -xe
python -m pip install -r requirements_dev.txt
shell: bash
- name: "Build"
run: |
set -xe
python -VV
python setup.py sdist
pip wheel --verbose --no-deps --no-clean dist/pyte*.tar.gz
pip install pyte*.whl
shell: bash
- name: "Run tests"
run: |
set -xe
# Change directory to avoid importing pyte from repo root.
pushd tests
python -m pytest -vv --pyargs .
popd
shell: bash
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pytest
pyperf == 1.7.1
wcwidth
wheel

0 comments on commit 9104e16

Please sign in to comment.