Skip to content

Commit

Permalink
replace AppVeyor / Travis with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
svenevs committed Oct 3, 2021
1 parent 16a367f commit 9c581c9
Show file tree
Hide file tree
Showing 8 changed files with 333 additions and 278 deletions.
104 changes: 0 additions & 104 deletions .appveyor.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/test_extras.yaml
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
141 changes: 141 additions & 0 deletions .github/workflows/test_python.yaml
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
Loading

0 comments on commit 9c581c9

Please sign in to comment.