generated from axioma-ai-labs/python-template
-
Notifications
You must be signed in to change notification settings - Fork 9
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 #24 from axioma-ai-labs/23-add-tests
Add tests
- Loading branch information
Showing
26 changed files
with
1,018 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,70 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pipenv" | ||
cache-dependency-path: | | ||
Pipfile.lock | ||
- name: Install pipenv and deps | ||
run: | | ||
python -m pip install --upgrade pipenv wheel | ||
make deps | ||
- name: Lint source code | ||
run: make lint | ||
|
||
Unit-Test: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- Lint | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: 'true' | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pipenv" | ||
cache-dependency-path: | | ||
Pipfile.lock | ||
- name: Install pipenv and deps | ||
run: | | ||
python -m pip install --upgrade pipenv wheel | ||
make deps | ||
- name: Install dependencies | ||
run: make deps | ||
|
||
- name: Run tests | ||
run: make test-ci | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
flags: main | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: axioma-ai-labs/aa-core |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,29 @@ | ||
# For more configuration details: | ||
# https://docs.codecov.io/docs/codecov-yaml | ||
|
||
# Check if this file is valid by running in bash: | ||
# curl -X POST --data-binary @.codecov.yml https://codecov.io/validate | ||
|
||
# Coverage configuration | ||
# ---------------------- | ||
coverage: | ||
status: | ||
patch: false | ||
|
||
range: 70..90 # First number represents red, and second represents green | ||
# (default is 70..100) | ||
round: down # up, down, or nearest | ||
precision: 2 # Number of decimal places, between 0 and 5 | ||
|
||
# Ignoring Paths | ||
# -------------- | ||
# which folders/files to ignore | ||
ignore: | ||
- "test/*" | ||
|
||
# Pull request comments: | ||
# ---------------------- | ||
# Diff is the Coverage Diff of the pull request. | ||
# Files are the files impacted by the pull request | ||
comment: | ||
layout: diff, files # accepted in any order: reach, diff, flags, and/or files |
Oops, something went wrong.