-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1c7dccb
commit 44fbb5b
Showing
5 changed files
with
128 additions
and
73 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,120 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
name: Linux Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
tests: | ||
name: "Python ${{ matrix.python-version }}" | ||
runs-on: "ubuntu-18.04" | ||
env: | ||
USING_COVERAGE: '3.6,3.7,3.8,3.9' | ||
|
||
strategy: | ||
fail-fast: False | ||
matrix: | ||
python-version: ["3.6","3.7","3.8","3.9"] | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
- name: Setup Python 🐍 | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: Install dependencies 🔧 | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade tox tox-gh-actions virtualenv | ||
python -m pip install --upgrade coverage_pyver_pragma | ||
- name: "Run Tests for Python ${{ matrix.python-version }}" | ||
run: "python -m tox" | ||
|
||
|
||
- name: "Upload Coverage" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "coverage-${{ matrix.python-version }}" | ||
path: .coverage | ||
|
||
|
||
Coverage: | ||
needs: tests | ||
runs-on: "ubuntu-18.04" | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Setup Python 🐍 | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies 🔧 | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade coveralls coverage_pyver_pragma | ||
- name: "Download Coverage" | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: coverage | ||
|
||
- name: Display structure of downloaded files | ||
run: ls -R | ||
working-directory: coverage | ||
|
||
- name: Combine Coverage | ||
run: | | ||
shopt -s globstar | ||
python -m coverage combine coverage/**/.coverage | ||
- name: "Upload Combined Coverage Aretfact" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "combined-coverage" | ||
path: .coverage | ||
|
||
- name: "Upload Combined Coverage to Coveralls" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
coveralls | ||
Deploy: | ||
needs: tests | ||
|
||
runs-on: "ubuntu-18.04" | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Setup Python 🐍 | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies 🔧 | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade tox | ||
- name: Build distributions 📦 | ||
run: | | ||
tox -e build | ||
- name: Upload distribution 📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
skip_existing: true |
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
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