-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GitHub actions workflow * Make tests executable from top-level directory. * Add codecov to install script. * Remove Travis configuration file.
- Loading branch information
Showing
22 changed files
with
338 additions
and
55 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
File renamed without changes.
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,7 @@ | ||
[run] | ||
source = z2pack | ||
|
||
[report] | ||
exclude_lines = | ||
# Ignore lines used only for mypy runs | ||
if ty\.TYPE_CHECKING: |
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,121 @@ | ||
name: Continuous Integration | ||
|
||
on: [push, pull_request] | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
install-type: [dev] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -qq graphviz | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ matrix.python-version }}-${{ matrix.install-type }}-${{ hashFiles('**/setup.json') | ||
}} | ||
restore-keys: pip-${{ matrix.python-version }}-${{ matrix.install-type }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install the python project | ||
env: | ||
INSTALL_TYPE: ${{ matrix.install-type }} | ||
run: .ci/install_script.sh | ||
|
||
- name: Build documentation | ||
env: | ||
READTHEDOCS: 'True' | ||
run: SPHINXOPTS='-nW' make -C doc html | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: doc-build | ||
path: doc/build/html | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
install-type: [dev] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -qq graphviz | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ matrix.python-version }}-${{ matrix.install-type }}-${{ hashFiles('**/setup.json') | ||
}} | ||
restore-keys: pip-${{ matrix.python-version }}-${{ matrix.install-type }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install the python project | ||
env: | ||
INSTALL_TYPE: ${{ matrix.install-type }} | ||
run: .ci/install_script.sh | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 | ||
) | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
install-type: [dev] | ||
include: | ||
- python-version: 3.8 | ||
install-type: dev_sdist | ||
- python-version: 3.8 | ||
install-type: dev_bdist_wheel | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -qq graphviz | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ matrix.python-version }}-${{ matrix.install-type }}-${{ hashFiles('**/setup.json') | ||
}} | ||
restore-keys: pip-${{ matrix.python-version }}-${{ matrix.install-type }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install the python project | ||
env: | ||
INSTALL_TYPE: ${{ matrix.install-type }} | ||
run: .ci/install_script.sh | ||
|
||
- name: Run pytest | ||
run: pytest --cov=z2pack --cov-config=.coveragerc | ||
- name: Run codecov | ||
run: codecov |
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,91 @@ | ||
name: Continuous Integration | ||
|
||
on: [push, pull_request] | ||
|
||
_anchors: | ||
checkout: &CHECKOUT | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
apt-dependencies: &APT_DEPENDENCIES | ||
name: Install apt dependencies | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -qq graphviz | ||
pip-cache: &PIP_CACHE | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ matrix.python-version }}-${{ matrix.install-type }}-${{ hashFiles('**/setup.json') }} | ||
restore-keys: pip-${{ matrix.python-version }}-${{ matrix.install-type }} | ||
|
||
python-setup: &PYTHON_SETUP | ||
name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
install-project: &INSTALL_PROJECT | ||
name: Install the python project | ||
env: | ||
INSTALL_TYPE: ${{ matrix.install-type }} | ||
run: .ci/install_script.sh | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
install-type: [dev] | ||
steps: | ||
- *CHECKOUT | ||
- *APT_DEPENDENCIES | ||
- *PIP_CACHE | ||
- *PYTHON_SETUP | ||
- *INSTALL_PROJECT | ||
- name: Build documentation | ||
env: | ||
READTHEDOCS: "True" | ||
run: SPHINXOPTS='-nW' make -C doc html | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: doc-build | ||
path: doc/build/html | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
install-type: [dev] | ||
steps: | ||
- *CHECKOUT | ||
- *APT_DEPENDENCIES | ||
- *PIP_CACHE | ||
- *PYTHON_SETUP | ||
- *INSTALL_PROJECT | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
install-type: [dev] | ||
include: | ||
- python-version: 3.8 | ||
install-type: dev_sdist | ||
- python-version: 3.8 | ||
install-type: dev_bdist_wheel | ||
steps: | ||
- *CHECKOUT | ||
- *APT_DEPENDENCIES | ||
- *PIP_CACHE | ||
- *PYTHON_SETUP | ||
- *INSTALL_PROJECT | ||
- name: Run pytest | ||
run: pytest --cov=z2pack --cov-config=.coveragerc | ||
- name: Run codecov | ||
run: codecov |
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ tests/.pytest_cache | |
.pytest_cache/v/cache | ||
.coverage | ||
.coverage* | ||
!.coveragerc | ||
htmlcov | ||
|
||
# editors | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
[build-system] | ||
requires = ["setuptools >= 46.4.0", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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
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
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 @@ | ||
local_config.yml.example |
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
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
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
Oops, something went wrong.