diff --git a/.github/workflows/push_tests.yml b/.github/workflows/push_tests.yml index cd5577d4..86de15a3 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -57,8 +57,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-cli - path: ./.coverage* + path: .coverage* retention-days: 3 + include-hidden-files: true unit-tests-migration-assistant: runs-on: ubuntu-latest @@ -88,8 +89,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-migration-assisstant - path: ./.coverage* + path: .coverage* retention-days: 3 + include-hidden-files: true unit-test-ontology-dry-run: runs-on: ubuntu-latest @@ -119,8 +121,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-ontology-dry-run - path: ./.coverage* + path: .coverage* retention-days: 3 + include-hidden-files: true unit-test-genes-dry-run: runs-on: ubuntu-latest @@ -150,8 +153,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-genes-dry-run - path: ./.coverage* + path: .coverage* retention-days: 3 + include-hidden-files: true submit-codecoverage: needs: @@ -184,6 +188,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} env_vars: OS,PYTHON files: ./coverage.xml flags: unittests diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 00000000..9dbaf5d1 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,27 @@ +comment: + layout: "header, diff, components" + +component_management: + default_rules: + statuses: + - type: project + target: auto + branches: + - "!main" + individual_components: + - component_id: module_cellxgene_schema_cli + name: cellxgene_schema_cli + paths: + - cellxgene_schema_cli/** + - component_id: module_migration_assistant + name: migration_assistant + paths: + - scripts/migration_assistant/** + - component_id: module_schema_bump_dry_run_genes + name: schema_bump_dry_run_genes + paths: + - scripts/schema_bump_dry_run_genes/** + - component_id: module_schema_bump_dry_run_ontologies + name: schema_bump_dry_run_ontologies + paths: + - scripts/schema_bump_dry_run_ontologies/**