Skip to content

Commit

Permalink
adding more yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ko committed Apr 10, 2024
1 parent 381aca4 commit ebe0a6a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/codecov_action_example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Test python API
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install requirements
run: pip install -r api/requirements.txt
- name: Run tests and collect coverage
run: pytest --cov=api.calculator --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
- uses: codecov/codecov-action@v4.2.0
env:
CODECOV_TOKEN: "test"
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,14 @@ flags:
backend:
paths:
- .*

component_management:
default_rules: # default rules that will be inherited by all components
statuses:
- type: project # in this case every component that doens't have a status defined will have a project type one
target: auto
individual_components:
- component_id: js-component # this is an identifier that should not be changed
name: person-menu # this is a display name, and can be changed freely
paths:
- resources/js

0 comments on commit ebe0a6a

Please sign in to comment.