diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index f50e8aa9..7cb03217 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -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 diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 0f7ddf1b..b5ba410a 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -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: @@ -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