-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raises min python version, renames default branch
- Sets the minimum python version to 3.10 - Makes main the default branch
- Loading branch information
Showing
49 changed files
with
483 additions
and
629 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,19 @@ | ||
name: Init | ||
description: Sets up the environment for build, lint, and test jobs | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
with: | ||
cache: pip | ||
cache-dependency-path: | | ||
pyproject.toml | ||
requirements.txt | ||
requirements-dev.txt | ||
- name: Installing dependencies | ||
shell: sh | ||
run: >- | ||
pip install -U pip && | ||
pip install -U -r requirements.txt -r requirements-dev.txt |
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,23 @@ | ||
name: Lint | ||
description: Lints the codebase with black, isort, pyflakes, and mypy | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: ./.github/actions/init | ||
|
||
- name: Linting with black | ||
run: black --check mnamer tests | ||
shell: sh | ||
|
||
- name: Linting isort | ||
run: isort --check-only mnamer tests | ||
shell: sh | ||
|
||
- name: Linting pyflakes | ||
run: pyflakes mnamer tests | ||
shell: sh | ||
|
||
- name: Linting mypy | ||
run: mypy mnamer tests | ||
shell: sh |
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,46 @@ | ||
name: Test | ||
description: Tests the codebase with pytest | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: ./.github/actions/init | ||
|
||
- name: Running Local Unit Tests | ||
run: >- | ||
python -m pytest | ||
-m local | ||
--durations=10 | ||
--cov=./ | ||
--cov-append | ||
--cov-report=term-missing | ||
--cov-report=xml | ||
shell: sh | ||
|
||
- name: Running Network Unit Tests | ||
run: >- | ||
python -m pytest | ||
-m network | ||
--reruns 3 | ||
--durations=10 | ||
--cov=./ | ||
--cov-append | ||
--cov-report=term-missing | ||
--cov-report=xml | ||
shell: sh | ||
|
||
- name: Running End to End Tests | ||
run: >- | ||
python -m pytest | ||
-m e2e | ||
--reruns 3 | ||
--durations=10 | ||
--cov=./ | ||
--cov-append | ||
--cov-report=term-missing | ||
--cov-report=xml | ||
shell: sh | ||
|
||
- name: Reporting Coverage Statistics | ||
uses: codecov/codecov-action@v1 | ||
if: success() && github.ref == 'refs/heads/main' |
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 @@ | ||
3.10 |
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
Oops, something went wrong.