-
Notifications
You must be signed in to change notification settings - Fork 6
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
f1f5113
commit b5be804
Showing
4 changed files
with
79 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Publish docs via GitHub Pages | |
on: | ||
push: | ||
paths: | ||
- 'docs/**' | ||
- "docs/**" | ||
|
||
jobs: | ||
build: | ||
|
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 |
---|---|---|
|
@@ -5,43 +5,42 @@ name: Python package | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
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: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Python Poetry Action | ||
uses: abatilo/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Lint with pylint | ||
run: poetry run python -m pylint frosch | ||
|
||
- name: Test with pytest | ||
run: poetry run python -m pytest --cov=frosch tests --cov-report=xml | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
file: ./coverage.xml # optional | ||
files: ./coverage1.xml,./coverage2.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Python Poetry Action | ||
uses: abatilo/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Lint with pylint | ||
run: poetry run python -m pylint frosch | ||
|
||
- name: Test with pytest | ||
run: poetry run python -m pytest --cov=frosch tests --cov-report=xml | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
file: ./coverage.xml # optional | ||
files: ./coverage1.xml,./coverage2.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) |
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 |
---|---|---|
|
@@ -9,36 +9,33 @@ on: | |
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Python Poetry Action | ||
uses: abatilo/[email protected] | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
- name: Python Poetry Action | ||
uses: abatilo/actions-poetry@v2.1.0 | ||
|
||
- name: Lint with pylint | ||
run: poetry run python -m pylint frosch | ||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Test with pytest | ||
run: poetry run python -m pytest tests | ||
|
||
- name: Test with pytest | ||
run: poetry build | ||
- name: Lint with pylint | ||
run: poetry run python -m pylint frosch | ||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
- name: Test with pytest | ||
run: poetry run python -m pytest tests | ||
|
||
- name: Build package | ||
run: poetry build | ||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} |