Skip to content

Commit 43fe5c3

Browse files
authored
Merge pull request #54 from THD-Spatial-AI/dev
Dev
2 parents 6fbe318 + 6d70af0 commit 43fe5c3

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/add-to-org-project.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Add to organisation project
33
on:
44
issues:
55
types: [opened, reopened]
6-
pull_request:
7-
types: [opened, reopened]
86

97
jobs:
108
add-to-project:

.github/workflows/go.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Go
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "main", "dev" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ "main", "dev" ]
88

99
jobs:
1010

@@ -17,13 +17,19 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: '1.24'
20+
go-version-file: 'go.mod'
2121

2222
- name: Build
2323
run: go build -v ./...
2424

2525
- name: Test
26-
run: go test -v ./...
26+
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
27+
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v5
30+
with:
31+
files: coverage.out
32+
fail_ci_if_error: false
2733

2834
integration:
2935
name: Integration Tests
@@ -34,7 +40,7 @@ jobs:
3440
- name: Set up Go
3541
uses: actions/setup-go@v4
3642
with:
37-
go-version: '1.24'
43+
go-version-file: 'go.mod'
3844

3945
- name: Install psql client
4046
run: sudo apt-get install -y postgresql-client

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![go](https://github.com/thd-spatial-ai/city2tabula/actions/workflows/go.yml/badge.svg)](https://github.com/thd-spatial-ai/city2tabula/actions/workflows/go.yml)
44
 
5+
[![codecov](https://codecov.io/gh/thd-spatial-ai/city2tabula/branch/main/graph/badge.svg)](https://codecov.io/gh/thd-spatial-ai/city2tabula)
6+
 
57
[![MkDocs](https://github.com/thd-spatial-ai/city2tabula/actions/workflows/docs.yml/badge.svg)](https://thd-spatial-ai.github.io/city2tabula)
68
 
79
[![GitHub release](https://img.shields.io/github/v/release/thd-spatial-ai/City2TABULA.svg)](https://github.com/thd-spatial-ai/city2tabula/releases)

0 commit comments

Comments
 (0)