Skip to content

Commit

Permalink
CI: github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Apr 4, 2021
1 parent bca4a71 commit d616ac3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
python-version:
- "3.6"
- "3.8"
networkx-version:
- "1.*"
- "2.*"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install networkx==${{ matrix.networkx-version }}
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run pre-commit
uses: pre-commit/action@v2.0.0
- name: Test with pytest
run: pytest --color=yes
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ keywords =
packages = obonet
zip_safe = False
include_package_data = True
python_requires = >=3
python_requires = >=3.5
install_requires =
networkx

Expand Down

0 comments on commit d616ac3

Please sign in to comment.