Skip to content

Commit

Permalink
Merge branch 'main' into 376-unique-consistent-user-identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavinok committed Nov 20, 2023
2 parents 47faedb + ac7c5e7 commit 6f4e9a2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 68 deletions.
83 changes: 21 additions & 62 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,21 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- pinned
- security
- dependencies
- epic

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.

# Comment to post when closing a stale Issue or Pull Request.
closeComment: >
This issue has been automatically closed because it has become stale.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

# Limit to only `issues` or `pulls`
# only: issues

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.

# issues:
# exemptLabels:
# - confirmed
# Configuration for https://github.com/actions/stale

name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
clos-issue-message: 'This issue has been automatically closed because it has become stale.'
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-pr-message: 'This pull request has been automatically closed because it has become stale.'
stale-issue-label: 'stale'
exempt-issue-labels: 'pinned,security,dependencies,epic'
stale-pr-label: 'stale'
exempt-pr-labels: 'awaiting-approval,work-in-progress'
24 changes: 19 additions & 5 deletions .github/workflows/controller_unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ name: Controller Unit Tests
on:
push:
branches:
- '2.0-development'
- "main"
pull_request:
branches:
- '2.0-development'

- "main"

jobs:
build:
Expand All @@ -16,7 +15,6 @@ jobs:
strategy:
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -39,4 +37,20 @@ jobs:
- name: Test with pytest
working-directory: ./oidc-controller
run: |
pytest --log-cli-level=INFO
pytest --log-cli-level=INFO --cov --cov-report lcov
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: python-${{ matrix.python-version }}
parallel: true
code-coverage:
name: Generate Code Coverage
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "python-3.11"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

[![unit-tests](https://github.com/bcgov/vc-authn-oidc/actions/workflows/controller_unittests.yml/badge.svg?branch=2.0-development&event=push)](https://github.com/bcgov/vc-authn-oidc/actions/workflows/controller_unittests.yml)
[![Coverage Status](https://coveralls.io/repos/github/bcgov/vc-authn-oidc/badge.svg?branch=main)](https://coveralls.io/repos/github/bcgov/vc-authn-oidc/badge.svg?branch=main)

# Verifiable Credential Authentication with OpenID Connect (VC-AuthN OIDC)

Expand Down Expand Up @@ -149,4 +150,4 @@ This is a sample debugger launch configuration for VSCode that can be used by ad
}
]
}
```
```

0 comments on commit 6f4e9a2

Please sign in to comment.