-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from gregcorbett/check_db_dump_recent_rework_r…
…ework Refactor to ignore a failure for the grace period
- Loading branch information
Showing
8 changed files
with
365 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
# For GitHub Actions, "/" checks for workflow files in .github/workflows. | ||
directory: "/" | ||
schedule: | ||
# By default, this is on Monday. | ||
interval: "weekly" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Run Unit Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
unit-test: | ||
name: Python ${{ matrix.python-version }} ${{ matrix.os }} test | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# 3.6 is the version readily available on EL7. Requires ubuntu-20.04. | ||
# 3.9 would seem to be the highest python version readily available | ||
# on EL8. | ||
# Also test against the very latest 3 series available. | ||
python-version: [3.6, 3.9, 3.x] | ||
os: [ubuntu-20.04, ubuntu-latest] | ||
exclude: | ||
- os: ubuntu-latest | ||
python-version: 3.6 | ||
- os: ubuntu-20.04 | ||
python-version: 3.9 | ||
- os: ubuntu-20.04 | ||
python-version: 3.x | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up dependencies | ||
run: pip install -r requirements-test.txt | ||
|
||
- name: Run unit tests | ||
run: coverage run --branch --source=check -m unittest discover --buffer | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3.1.4 |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Requirements for the unit and coverage tests only. | ||
codecov |
Empty file.
Oops, something went wrong.