Skip to content

Commit

Permalink
Merge branch 'main' into surface-api-alternative-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Jul 3, 2024
2 parents 006c274 + 47eb7ee commit ba26ea3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
coverage:
if: "!contains(github.event.pull_request.labels.*.name, 'docs-only')"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.12"]

steps:
- uses: compas-dev/compas-actions.build@v4
with:
invoke_lint: false
invoke_test: false
python: ${{ matrix.python }}
- name: Run tests collecting coverage reports
run: pytest --cov src/compas --cov-report=html
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* Added code coverage report uploads to codecov.io.
* Added `compas.geometry.surfaces.surface.Surface.from_native`.
* Added `compas.geometry.surfaces.nurbs.NurbsSurface.from_plane`.
* Added `compas.geometry.surfaces.nurbs.NurbsSurface.from_cylinder`.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The COMPAS framework

![build](https://github.com/compas-dev/compas/workflows/build/badge.svg)
[![codecov](https://codecov.io/github/compas-dev/compas/graph/badge.svg?token=wpkfew9szQ)](https://codecov.io/github/compas-dev/compas)
[![GitHub - License](https://img.shields.io/github/license/compas-dev/compas.svg)](https://github.com/compas-dev/compas)
[![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/compas)](https://anaconda.org/conda-forge/compas)
[![pip downloads](https://img.shields.io/pypi/dm/compas)](https://pypi.python.org/project/COMPAS)
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ black >=22.12.0
bump-my-version
compas_invocations2
invoke >=0.14
pytest-cov
ruff
sphinx_compas2_theme
twine
Expand Down

0 comments on commit ba26ea3

Please sign in to comment.