Skip to content

Commit 58592f8

Browse files
committed
update ci settings
1 parent ded96cb commit 58592f8

File tree

5 files changed

+42
-38
lines changed

5 files changed

+42
-38
lines changed

.github/workflows/ubuntu.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Ubuntu CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: ['v*']
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-18.04
13+
strategy:
14+
matrix:
15+
python-version: [3.7, 3.8, 3.9]
16+
steps:
17+
- name: Checkout source code
18+
uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y curl
29+
- name: Install poetry
30+
run: |
31+
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
32+
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
33+
- name: Setup
34+
run: make setup
35+
- name: Test
36+
run: make test

.travis.yml

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

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
setup:
2-
pip install pipenv
3-
pipenv run pip install pip==18.0
4-
pipenv install --dev
5-
pipenv run pip install -e .
2+
poetry self update
3+
poetry install --no-interaction
4+
poetry run pip install -e .
65

76
test:
8-
pipenv run python -m unittest discover
7+
poetry run python -m unittest discover

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ![logo](https://raw.githubusercontent.com/neka-nat/probreg/master/images/logo.png)
2-
[![Build Status](https://travis-ci.org/neka-nat/probreg.svg?branch=master)](https://travis-ci.org/neka-nat/probreg)
2+
[![Build status](https://github.com/neka-nat/probreg/actions/workflows/ubuntu.yaml/badge.svg)](https://github.com/neka-nat/probreg/actions/workflows/ubuntu.yaml/badge.svg)
33
[![Build status](https://ci.appveyor.com/api/projects/status/mdoohms52gnq6law?svg=true)](https://ci.appveyor.com/project/neka-nat/probreg)
44
[![PyPI version](https://badge.fury.io/py/probreg.svg)](https://badge.fury.io/py/probreg)
55
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["nekanat <nekanat.stock@gmail.com>"]
66
license = "MIT"
77

88
[tool.poetry.dependencies]
9-
python = "^3.7"
9+
python = ">=3.7,<3.10"
1010
pybind11 = "^2.6.2"
1111
six = "^1.15.0"
1212
scipy = "^1.6.0"

0 commit comments

Comments
 (0)