Skip to content

Commit 9d2c8e3

Browse files
authored
Set up github actions (#163)
1 parent 318fe3a commit 9d2c8e3

34 files changed

+127
-87
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI pipeline
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
container:
14+
image: google/dart:latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Print Dart SDK version
20+
run: dart --version
21+
22+
- name: Install dependencies
23+
run: dart pub get
24+
25+
- name: Analyze project source
26+
run: dart analyze --fatal-infos
27+
28+
- name: Run tests
29+
run: dart test
30+
31+
- name: Run e2e tests
32+
run: dart pub run test e2e -p vm
33+
34+
- name: Code coverage
35+
run: dart pub run test_coverage
36+
37+
- name: Coveralls GitHub Action
38+
uses: coverallsapp/github-action@v1.1.2
39+
with:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 15.3.5
4+
- Github actions set up
5+
36
## 15.3.4
47
- `DI logic`:
58
- conditional dependency registering added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/gyrdym/ml_algo.svg?branch=master)](https://travis-ci.com/gyrdym/ml_algo)
1+
[![Build Status](https://github.com/gyrdym/ml_algo/workflows/CI%20pipeline/badge.svg)](https://github.com/gyrdym/ml_algo/actions?query=workflow%3A%22CI+pipeline%22)
22
[![Coverage Status](https://coveralls.io/repos/github/gyrdym/ml_algo/badge.svg?branch=master)](https://coveralls.io/github/gyrdym/ml_algo?branch=master)
33
[![pub package](https://img.shields.io/pub/v/ml_algo.svg)](https://pub.dartlang.org/packages/ml_algo)
44
[![Gitter Chat](https://badges.gitter.im/gyrdym/gyrdym.svg)](https://gitter.im/gyrdym/)

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include: package:ml_tech/analysis_options.yaml
1+
include: package:pedantic/analysis_options.yaml

benchmark/logistic_regressor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LogisticRegressorBenchmark extends BenchmarkBase {
2828

2929
@override
3030
void setup() {
31-
final Matrix observations = Matrix.fromRows(List.generate(observationsNum,
31+
final observations = Matrix.fromRows(List.generate(observationsNum,
3232
(i) => Vector.randomFilled(columnsNum)));
3333

3434
_data = DataFrame.fromMatrix(observations);

e2e_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
pub run test e2e -p vm

lib/src/classifier/logistic_regressor/logistic_regressor_impl.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/classifier/softmax_regressor/softmax_regressor_impl.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class SoftmaxRegressorImpl
5151
factory SoftmaxRegressorImpl.fromJson(Map<String, dynamic> json) =>
5252
_$SoftmaxRegressorImplFromJson(json);
5353

54+
@override
5455
Map<String, dynamic> toJson() => _$SoftmaxRegressorImplToJson(this);
5556

5657
@override

lib/src/classifier/softmax_regressor/softmax_regressor_impl.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)