Skip to content

Commit

Permalink
Merge pull request #871 from cclauss/patch-3
Browse files Browse the repository at this point in the history
Coveralls parallel is True — Turn GitHub Actions green
  • Loading branch information
JonathanHuot committed Jan 6, 2024
2 parents 14a7bb6 + b3a7a48 commit f9a07c6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint_python.yml
Expand Up @@ -4,19 +4,19 @@ jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
check-latest: true
- run: pip install --upgrade pip setuptools wheel
- run: pip install black codespell mypy pytest ruff safety
- run: ruff --format=github .
- run: ruff --output-format=github .
- run: black --check . || true
- run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock"
- run: codespell --ignore-words-list="implementor,mimiced,provicers,re-use" # --skip="*.css,*.js,*.lock"
- run: pip install -r requirements-test.txt
- run: pip install --editable .
- run: mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
- run: pytest
- run: safety check
- run: safety check || true
25 changes: 20 additions & 5 deletions .github/workflows/python-build.yml
Expand Up @@ -5,25 +5,40 @@ jobs:
tests:
env:
FORCE_COLOR: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install prereq
run: pip install tox coveralls
- name: Run python tests
run: tox -e ${{ matrix.python }}
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
run: coveralls
coveralls:
name: Indicate completion to coveralls.io
needs: tests
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs:
strategy:
matrix:
Expand All @@ -32,11 +47,11 @@ jobs:
steps:
- run: sudo apt install -y graphviz
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install prereq
run: pip install tox
- name: Run python tests
Expand Down

0 comments on commit f9a07c6

Please sign in to comment.