Skip to content

Commit

Permalink
refactor: move CI to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
timmahrt committed Jul 15, 2023
1 parent 4c50bed commit c49a989
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pysle test runner

on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pip setuptools
pip install "importlib-metadata>=4.12" coveralls pytest pytest-cov
python setup.py install
- name: Test with pytest
run: |
pytest --cov=pysle --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit c49a989

Please sign in to comment.