-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
1 changed file
with
57 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -7,9 +7,32 @@ defaults: | |
shell: bash -l {0} | ||
|
||
jobs: | ||
prep: | ||
lint: | ||
name: Code style | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install package | ||
run: | | ||
set -vxeuo pipefail | ||
python -m pip install --upgrade pip | ||
- name: Run ruff | ||
uses: davidslusser/[email protected] | ||
with: | ||
python_version: "3.11" | ||
# see .ruff.toml file for options | ||
|
||
test-matrix: | ||
name: Workflow Redevelopment | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
strategy: | ||
matrix: | ||
python-version: | ||
|
@@ -92,3 +115,36 @@ jobs: | |
coverage run --concurrency=thread --parallel-mode -m pytest -vvv --exitfirst . | ||
coverage combine | ||
coverage report --precision 3 | ||
- name: Upload coverage data to coveralls.io | ||
shell: bash -l {0} | ||
run: | | ||
set -vxeuo pipefail | ||
micromamba list coveralls | ||
which coveralls | ||
coveralls debug | ||
coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: ${{ matrix.python-version }} | ||
COVERALLS_PARALLEL: true | ||
|
||
# https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support | ||
coveralls: | ||
name: Report unit test coverage to coveralls | ||
needs: test-matrix | ||
runs-on: ubuntu-latest | ||
container: python:3-slim | ||
|
||
steps: | ||
- name: Gather coverage and report to Coveralls | ||
run: | | ||
set -vxeuo pipefail | ||
echo "Finally!" | ||
pip3 install --upgrade coveralls | ||
# debug mode: output prepared json and reported files list to stdout | ||
# https://coveralls-python.readthedocs.io/en/latest/troubleshooting.html | ||
coveralls debug | ||
coveralls --service=github --finish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |