Skip to content

Commit

Permalink
Added github workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
frobnitzem committed Oct 9, 2024
1 parent 2de2a7f commit 237c908
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 95 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Python package

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.8", "3.9", "3.11"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install poetry
poetry config virtualenvs.create false
poetry install --with all
- name: Lint with mypy
run: |
mypy certified tests
- name: Test with pytest
run: |
pytest --cov
- name: Upload coverage to Codecov
if: matrix.python-version == 3.11 && startsWith(matrix.os, 'ubuntu')
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![CI](https://github.com/ORNL/certified/actions/workflows/python-package.yml/badge.svg)](https://github.com/ORNL/certified/actions)
[![Coverage](https://codecov.io/github/ORNL/certified/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ORNL/certified)


# Certified

An idiomatic framework for using certificates
Expand Down
Loading

0 comments on commit 237c908

Please sign in to comment.