Skip to content

Commit

Permalink
Merge pull request #997 from shirou/feature/remove_circle_ci
Browse files Browse the repository at this point in the history
remove circleci testing
  • Loading branch information
shirou committed Nov 19, 2020
2 parents 6286bea + 34412e0 commit 340db11
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 64 deletions.
58 changes: 0 additions & 58 deletions .circleci/config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test_v3_module:
strategy:
matrix:
go-version: [1.12.x, 1.14.x, 1.15.x]
go-version: [1.13.x, 1.14.x, 1.15.x]
os: [ubuntu-18.04, ubuntu-16.04, windows-2019, windows-2016, macOS-10.14, macos-11.0]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
GO111MODULE: off
strategy:
matrix:
go-version: [1.12.x, 1.14.x, 1.15.x]
go-version: [1.13.x, 1.14.x, 1.15.x]
os: [ubuntu-18.04, ubuntu-16.04, windows-2019, windows-2016, macOS-10.14, macos-11.0]
runs-on: ${{ matrix.os }}
steps:
Expand Down
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
gopsutil: psutil for golang
==============================

.. image:: https://circleci.com/gh/shirou/gopsutil.svg?&style=shield
:target: https://circleci.com/gh/shirou/gopsutil

.. image:: https://github.com/shirou/gopsutil/workflows/Test/badge.svg
:target: https://github.com/shirou/gopsutil/actions?query=workflow%3ATest

.. image:: https://coveralls.io/repos/shirou/gopsutil/badge.svg?branch=master
:target: https://coveralls.io/r/shirou/gopsutil?branch=master
Expand Down
3 changes: 2 additions & 1 deletion net/net_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package net

import (
"fmt"
"math"
"os"
"runtime"
"testing"
Expand Down Expand Up @@ -86,7 +87,7 @@ func TestNetIOCountersAll(t *testing.T) {
for _, p := range per {
pr += p.PacketsRecv
}
if v[0].PacketsRecv != pr {
if math.Abs(float64(v[0].PacketsRecv-pr)) > 5 {
t.Errorf("invalid sum value: %v, %v", v[0].PacketsRecv, pr)
}
}
Expand Down
4 changes: 3 additions & 1 deletion v3/net/net_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package net

import (
"fmt"
"math"
"os"
"runtime"
"testing"
Expand Down Expand Up @@ -86,7 +87,8 @@ func TestNetIOCountersAll(t *testing.T) {
for _, p := range per {
pr += p.PacketsRecv
}
if v[0].PacketsRecv != pr {
// small diff is ok
if math.Abs(float64(v[0].PacketsRecv-pr)) > 5 {
t.Errorf("invalid sum value: %v, %v", v[0].PacketsRecv, pr)
}
}
Expand Down

0 comments on commit 340db11

Please sign in to comment.