FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

all: add GitHub Actions CI by sbinet · Pull Request #147 · go-python/gpython · GitHub

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

Filter by extension

Filter by extension .md  (1) .mod  (1) .yml  (1) All 3 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
94 changes: 94 additions & 0 deletions .github/workflows/ci.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 2 * * 1-5'

env:
GOPROXY: "https://proxy.golang.org"
TAGS: "-tags=ci"
COVERAGE: "-coverpkg=github.com/go-python/gpython/..."

jobs:

build:
name: Build
strategy:
matrix:
go-version: [1.17.x, 1.16.x]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Setup Git for Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout code
uses: actions/checkout@v2

- name: Cache-Go
uses: actions/cache@v1
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
'%LocalAppData%\go-build'
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Install Linux packages
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -qq pkg-config python3

- name: Build-Linux-32b
if: matrix.platform == 'ubuntu-latest'
run: |
GOARCH=386 go install -v $TAGS ./...
- name: Build-Linux-64b
if: matrix.platform == 'ubuntu-latest'
run: |
GOARCH=amd64 go install -v $TAGS ./...
- name: Build-Windows
if: matrix.platform == 'windows-latest'
run: |
go install -v $TAGS ./...
- name: Build-Darwin
if: matrix.platform == 'macos-latest'
run: |
go install -v $TAGS ./...
- name: Test Linux
if: matrix.platform == 'ubuntu-latest'
run: |
GOARCH=386 go test $TAGS ./...
GOARCH=amd64 go run ./ci/run-tests.go $TAGS -race $COVERAGE
python3 py3test.py
- name: Test Windows
if: matrix.platform == 'windows-latest'
run: |
go run ./ci/run-tests.go $TAGS -race
- name: Test Darwin
if: matrix.platform == 'macos-latest'
run: |
go run ./ci/run-tests.go $TAGS -race
- name: Upload-Coverage
if: matrix.platform == 'ubuntu-latest'
uses: codecov/codecov-action@v1
2 changes: 1 addition & 1 deletion README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gpython

[![Build Status](https://travis-ci.org/go-python/gpython.svg?branch=master)](https://travis-ci.org/go-python/gpython)
[![Build Status](https://github.com/go-python/gpython/workflows/CI/badge.svg)](https://github.com/go-python/gpython/actions)
[![codecov](https://codecov.io/gh/go-python/gpython/branch/master/graph/badge.svg)](https://codecov.io/gh/go-python/gpython)
[![GoDoc](https://godoc.org/github.com/go-python/gpython?status.svg)](https://godoc.org/github.com/go-python/gpython)
[![License](https://img.shields.io/badge/License-BSD--3-blue.svg)](https://github.com/go-python/gpython/blob/master/LICENSE)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/go-python/gpython

go 1.12
go 1.16

require (
github.com/gopherjs/gopherwasm v1.0.0 // indirect
github.com/gopherjs/gopherwasm v1.0.0
github.com/peterh/liner v1.1.0
)

Back | FazBrowse Home | New Git URL