Skip to content

Commit

Permalink
CI: Migrate from Travis to GitHub Actions (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper authored Nov 9, 2021
1 parent bae1020 commit 2a89817
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 17 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: PyDataStructs Continuous Integration Tests

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

jobs:
test:
runs-on: ${{matrix.os}}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip version
run: |
python -m pip install --upgrade pip
- name: Install requirements
run: |
pip install -r requirements.txt
pip install -r docs/requirements.txt
- name: Build package
run: |
python -m pip install .
- name: Run tests
run: |
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
- name: Upload Coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: false
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
path_to_write_report: ./coverage/codecov_report.txt
verbose: true

- name: Build Documentation
run: |
sphinx-build -b html docs/source/ docs/build/html
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 2a89817

Please sign in to comment.