Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/coverage1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Code Coverage # The name of the workflow that will appear on Github

on:
push:
branches: [ main ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.23]
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Build project
run: go install ./...

- name: Test Coverage
run: |
go test -v -cover $(go list ./... | grep -v /examples/) -coverprofile coverage.out -coverpkg ./...
go tool cover -func coverage.out -o coverage_analysis.out

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
2 changes: 1 addition & 1 deletion algorithms/algorithm_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (

type AlgorithmInterface interface {
// Solves the provided optimization problem.
Solve(initialState AlgorithmInternalState) (problem.Solution, error)
Solve(prob problem.OptimizationProblem) (problem.Solution, error)
}
2 changes: 1 addition & 1 deletion algorithms/algorithm_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package algorithms

type AlgorithmType int

const TypeNaive AlgorithmType = AlgorithmType(1)
const TypeNaiveTableau AlgorithmType = AlgorithmType(1)
61 changes: 0 additions & 61 deletions algorithms/internal_state.go

This file was deleted.

206 changes: 0 additions & 206 deletions algorithms/naive.go

This file was deleted.

Loading
Loading