-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69f9002
commit ef47384
Showing
3 changed files
with
36 additions
and
0 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,13 @@ | ||
import platform | ||
import os | ||
|
||
if platform.system() == 'Linux': | ||
os.system('sudo apt-get install iputils-ping') | ||
|
||
os.system('python -m pip install --upgrade pip') | ||
os.system('pip install tox codecov coveralls pytest-cov') | ||
os.system('pip install -r requirements.txt') | ||
os.system('pip install -r requirements_dev.txt') | ||
|
||
|
||
|
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,20 @@ | ||
name: Testing IPpy | ||
on: [push] | ||
jobs: | ||
build: | ||
strategy: | ||
max-parallel: 12 | ||
matrix: | ||
platform: [ubuntu-latest, macOS-latest, windows-latest] | ||
python-version: [2.7, 3.5, 3.6, 3.7] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: python .github/workflows/deps.py | ||
- name: Test with pytest | ||
run: python .github/workflows/test.py |
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,3 @@ | ||
import sys | ||
import os | ||
os.system('tox -e py' + sys.version[:3].replace('.', '')) |