Skip to content

Merge pull request #37 from sandialabs/dependabot/github_actions/ossf… #79

Merge pull request #37 from sandialabs/dependabot/github_actions/ossf…

Merge pull request #37 from sandialabs/dependabot/github_actions/ossf… #79

name: Continuous Integration
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Check out the commit
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ~${{ matrix.version }}
- name: Install development dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install \
-r requirements.txt \
-r doc/requirements.txt \
-r test/requirements.txt
- name: Test install
run: python3 -m pip install .
- name: Test with pytest
run: python3 -m pytest --cov=staged_script example/ test/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Check documentation spelling
run: make spelling
working-directory: ./doc
- name: Check documentation coverage
run: make coverage
working-directory: ./doc
- name: Archive documentation coverage results
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: docs-coverage-report
path: doc/build/coverage/python.txt
- name: Test uninstall
run: python3 -m pip uninstall -y reverse_argparse
commits:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Conventional Commits
uses: taskmedia/action-conventional-commits@9148865058f63a6cb560ff4bfd7d534505f43646 # v1.1.3
with:
types: >
build|chore|ci|docs|feat|fix|minor|patch|perf|style|refactor|test