-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Migrate from Travis to GitHub Actions (#429)
- Loading branch information
1 parent
bae1020
commit 2a89817
Showing
2 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.