-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace AppVeyor / Travis with GitHub Actions
- Loading branch information
Showing
8 changed files
with
333 additions
and
278 deletions.
There are no files selected for viewing
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,71 @@ | ||
name: Test Extras | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_docs: | ||
name: Docs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Tools | ||
run: | | ||
pip install -U tox | ||
sudo apt-get install -y graphviz | ||
- name: Install Tools | ||
run: pip install -U tox | ||
- name: Test Docs | ||
run: | | ||
tox -e docs | ||
build_linkcheck: | ||
name: Linkcheck | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Tools | ||
run: | | ||
pip install -U tox | ||
sudo apt-get install -y graphviz | ||
- name: Test Linkcheck | ||
run: | | ||
tox -e linkcheck | ||
build_flake8: | ||
name: Flake8 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Tools | ||
run: | | ||
pip install -U tox | ||
sudo apt-get install -y graphviz | ||
- name: Test Flake8 | ||
run: | | ||
tox -e flake8 |
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,141 @@ | ||
name: Test Python | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
########################################################################## | ||
- name: Install Doxygen (macOS) | ||
if: contains(matrix.os, 'macos') | ||
run: | | ||
brew tap-new $USER/local-doxygen | ||
brew extract --version=1.8.20 doxygen $USER/local-doxygen | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew install -v [email protected] | ||
- name: Install Doxygen (Ubuntu) | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt-get install -y doxygen | ||
- name: Install Doxygen (Windows) | ||
if: contains(matrix.os, 'windows') | ||
run: | | ||
choco install doxygen.install --version 1.8.20 | ||
echo "C:\Program Files\doxygen\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
########################################################################## | ||
- name: Doxygen Version Dump | ||
run: doxygen --version | ||
########################################################################## | ||
- name: Use Python 2.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 2.7 | ||
- name: Install Python Tools | ||
run: pip install -U tox codecov coverage | ||
- name: Test Python 2.7 | ||
env: | ||
SPHINX_VERSION: '==1.8.5' | ||
BREATHE_VERSION: '==4.12.0' | ||
run: tox -e py -- --cov-report xml:coverage.xml --cov | ||
- name: Upload Code Coverage for Python 2.7 | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] ${{ matrix.os }}-py2.7" | ||
- name: Cleanup Python 2.7 | ||
run: | | ||
mv .gitignore nolongerignored | ||
git clean -n | ||
git clean -f | ||
git reset --hard | ||
########################################################################## | ||
- name: Use Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install Python Tools | ||
run: pip install -U tox codecov coverage | ||
- name: Test Python 3.6 | ||
env: | ||
SPHINX_VERSION: '==1.8.5' | ||
BREATHE_VERSION: '==4.12.0' | ||
run: tox -e py -- --cov-report xml:coverage.xml --cov | ||
- name: Upload Code Coverage for Python 3.6 | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] ${{ matrix.os }}-py3.6" | ||
- name: Cleanup Python 3.6 | ||
run: | | ||
mv .gitignore nolongerignored | ||
git clean -n | ||
git clean -f | ||
git reset --hard | ||
########################################################################## | ||
- name: Use Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install Python Tools | ||
run: pip install -U tox codecov coverage | ||
- name: Test Python 3.7 | ||
env: | ||
SPHINX_VERSION: '==2.0.0' | ||
BREATHE_VERSION: '==4.14.0' | ||
run: tox -e py -- --cov-report xml:coverage.xml --cov | ||
- name: Upload Code Coverage for Python 3.7 | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] ${{ matrix.os }}-py3.7" | ||
- name: Cleanup Python 3.7 | ||
run: | | ||
mv .gitignore nolongerignored | ||
git clean -n | ||
git clean -f | ||
git reset --hard | ||
########################################################################## | ||
- name: Use Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Python Tools | ||
run: pip install -U tox codecov coverage | ||
- name: Test Python 3.8 | ||
env: | ||
SPHINX_VERSION: '==3.0.0' | ||
run: tox -e py -- --cov-report xml:coverage.xml --cov | ||
- name: Upload Code Coverage for Python 3.8 | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] ${{ matrix.os }}-py3.8" | ||
- name: Cleanup Python 3.8 | ||
run: | | ||
mv .gitignore nolongerignored | ||
git clean -n | ||
git clean -f | ||
git reset --hard | ||
########################################################################## | ||
- name: Use Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Python Tools | ||
run: pip install -U tox codecov coverage | ||
- name: Test Python 3.9 | ||
env: | ||
SPHINX_VERSION: '>=4.0.0' | ||
run: tox -e py -- --cov-report xml:coverage.xml --cov | ||
- name: Upload Code Coverage for Python 3.9 | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] ${{ matrix.os }}-py3.9" | ||
- name: Cleanup Python 3.9 | ||
run: | | ||
mv .gitignore nolongerignored | ||
git clean -n | ||
git clean -f | ||
git reset --hard |
Oops, something went wrong.