Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [azp] add py 3.8 and 3.9, run demos in 3.9 * [travis] add 3.8, 3.9, remove macOS * [gha] add GitHub Actions builds * fix mypy unresolved imports * drop 3.5 from CI builds
- Loading branch information
Showing
7 changed files
with
122 additions
and
77 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
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,46 @@ | ||
name: Run Demos | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Dependencies | ||
run: | | ||
pip install -U tox codecov coverage | ||
################################################################################## | ||
# Each new demo: add new script: here, and in Demos Full Coverage below. # | ||
################################################################################## | ||
- name: Demo custom_log_stage | ||
run: | | ||
tox -q -e demos -- custom_log_stage | ||
################################################################################## | ||
# Run the demos with the --animate flag to complete coverage analysis. The | ||
# console clearing may produce some odd artifacts in the logs online (`[H` shows | ||
# up), aka IGNORE the output here ;). Then run some extras / generate | ||
# coverage.xml report. | ||
- name: Demos Full Coverage (IGNORE) | ||
run: | | ||
tox -e demos -- custom_log_stage --animate | ||
coverage run -a demos/ --help | ||
# Coverage `run -p` creates .coverage.*** files for different processes. | ||
# Combine them back into one file. | ||
coverage combine -a . | ||
coverage xml -o coverage.xml | ||
- name: Upload Code Coverage for Demos | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] Linux ${{ matrix.python-version }}-Demos" |
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,34 @@ | ||
name: Test Python | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Dependencies | ||
run: | | ||
pip install -U tox codecov coverage | ||
- name: Run Tests for ${{ matrix.python-version }} | ||
run: | | ||
tox -e py -- --cov-report xml:coverage.xml --cov | ||
# This step doesn't seem to be necessary...but meh xD | ||
- name: Delete ${{ matrix.python-version }} .tox/ Directory | ||
run: | | ||
python -c "import shutil; shutil.rmtree('.tox', ignore_errors=True)" | ||
- name: Upload Code Coverage for ${{ matrix.python-version }} | ||
run: | | ||
codecov --required -X gcov -f coverage.xml --name "[GHA] Linux-${{ matrix.python-version }}" |
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