-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first pass at codecov improvements * create pytest.xml to upload * switch to editable install * temp reduce matrix * flip install args? * recreate matrix * add to release notes * fix wrong pr number in release notes
- Loading branch information
Showing
2 changed files
with
17 additions
and
9 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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ "ubuntu-latest", "macos-latest"] | ||
os: ["ubuntu-latest", "macos-latest"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
steps: | ||
- name: Cancel previous runs | ||
|
@@ -43,19 +43,23 @@ jobs: | |
|
||
- name: Install geocat-comp | ||
run: | | ||
python -m pip install . --no-deps | ||
python -m pip install --no-deps -e . | ||
- name: conda list | ||
run: | | ||
conda list | ||
- name: Run Namespace Tests | ||
run: | | ||
python -m pytest test | ||
- name: Run Tests | ||
run: python -m pytest test -v | ||
--cov=./geocat/comp | ||
--cov-report=xml | ||
--junitxml=pytest.xml | ||
|
||
- name: Run Coverage Tests | ||
run: | | ||
python -m pytest test -v --cov=./geocat/comp --cov-report=xml | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Test results for ${{ runner.os }}-${{ matrix.python-version }} | ||
path: pytest.xml | ||
|
||
- name: Upload code coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
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