Skip to content

ci: Add continuous integration workflow #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
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"]
steps:

- name: Check out the commit
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
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 example/requirements.txt \
-r test/requirements.txt

- name: Test install
run: python3 -m pip install .

# - name: Test with pytest
# run: python3 -m pytest --cov=shell_logger example/ test/

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Check documentation spelling
run: make spelling SPHINXOPTS="-W --keep-going"
working-directory: ./doc

- name: Check documentation coverage
run: make coverage SPHINXOPTS="-W --keep-going"
working-directory: ./doc

- name: Archive documentation coverage results
uses: actions/upload-artifact@v3
with:
name: docs-coverage-report
path: doc/build/coverage/python.txt

- name: Test uninstall
run: python3 -m pip uninstall -y shell-logger

commits:
runs-on: ubuntu-latest
steps:
- name: Conventional Commits
uses: taskmedia/action-conventional-commits@v1.1.14
with:
types: >
build|chore|ci|docs|feat|fix|minor|patch|perf|style|refactor|test
2 changes: 1 addition & 1 deletion doc/make-html.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ python3 -m pip uninstall -y shell-logger
cd ..
python3 -m pip install .
cd "${SCRIPT_DIR}" || exit 1
make html
make html SPHINXOPTS="-W --keep-going"
cd "${ORIG_DIR}" || exit 1
1 change: 0 additions & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ shell-logger
stats_collector
trace
html_utilities
todo

The ``shell-logger`` Python package allows you to interact with the shell,
while logging various metadata, statistics, and trace information. Any time
Expand Down
20 changes: 20 additions & 0 deletions doc/source/spelling_wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
todo
docstring
namespace
namespaces
iterables
templated
substring
hostname
umask
ulimit
popen
skipkeys
ascii
dicts
nan
NaN
encodable
unproxied
STrace
LTrace
9 changes: 0 additions & 9 deletions doc/source/todo.rst

This file was deleted.

2 changes: 1 addition & 1 deletion shell_logger/html_utilities.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Various utitlities for building the HTML log file."""
"""Various utilities for building the HTML log file."""

# © 2024 National Technology & Engineering Solutions of Sandia, LLC
# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the
Expand Down