Skip to content

Commit

Permalink
Merge pull request #175 from PetrDlouhy/github_testing
Browse files Browse the repository at this point in the history
migrate Travis tests into GitHub actions
  • Loading branch information
areski authored Apr 18, 2024
2 parents 84ee79d + b6fa40d commit fef346f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python Tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
fail-fast: false

steps:
- name: Check out code
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 setuptools
pip install -r requirements.txt
python setup.py install
pip install coveralls
- name: Run tests
run: coverage run --source=nvd3 setup.py test

- name: Finish coveralls
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

0 comments on commit fef346f

Please sign in to comment.