Pull in updates from development branch #19
Workflow file for this run
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
name: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ["3.9", "3.10", "3.11", "3.12"] | |
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@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ~${{ matrix.version }} | |
- name: Install development dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install tomli | |
- name: Test install | |
run: python3 -m pip install .[dev] | |
- name: Test with pytest | |
run: python3 -m pytest --cov=sansmic examples/ tests/ | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# - name: Check documentation coverage | |
# run: | | |
# make coverage | |
# mv build/coverage/python.txt ../docs-coverage-report-${{ matrix.version }}.txt | |
# working-directory: ./docs | |
# - name: Archive documentation coverage results | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: docs-coverage-report-${{ matrix.version }} | |
# path: docs-coverage-report-${{ matrix.version }}.txt | |
- name: Test uninstall | |
run: python3 -m pip uninstall -y my-repository-name | |
# 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 |