-
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.
Fixed CI to show correct testing coverage List of changes: - Added Codecov to pull requests, - Fixed problem of pytest not showing the correct coverage, - Refactor CI files, - Update `README.md` to reflect correct CI file, - CI-coverage now runs on PR and pushes on main branch. - Remove un-used configuration from `pyproject.toml` --------- Co-authored-by: pesap <[email protected]>
- Loading branch information
1 parent
5807058
commit b6c6265
Showing
5 changed files
with
24 additions
and
84 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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: Main - CI | ||
name: CI | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 1-5" | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
pytest: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
python-version: ["3.11", "3.12"] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -24,9 +24,16 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[dev]" | ||
- name: Run pytest | ||
- name: Run pytest with coverage | ||
run: | | ||
python -m pytest -v --disable-warnings tests | ||
pytest -v --cov --cov-report=xml | ||
- name: codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: infrasys-tests | ||
fail_ci_if_error: false | ||
verbose: true | ||
mypy: | ||
runs-on: ubuntu-latest | ||
name: "mypy" | ||
|
This file was deleted.
Oops, something went wrong.
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
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