Skip to content

Commit

Permalink
update ci settings
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed Oct 18, 2021
1 parent ded96cb commit 58592f8
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 38 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Ubuntu CI

on:
push:
branches: [ master ]
tags: ['v*']
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Setup
run: make setup
- name: Test
run: make test
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
setup:
pip install pipenv
pipenv run pip install pip==18.0
pipenv install --dev
pipenv run pip install -e .
poetry self update
poetry install --no-interaction
poetry run pip install -e .

test:
pipenv run python -m unittest discover
poetry run python -m unittest discover
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ![logo](https://raw.githubusercontent.com/neka-nat/probreg/master/images/logo.png)
[![Build Status](https://travis-ci.org/neka-nat/probreg.svg?branch=master)](https://travis-ci.org/neka-nat/probreg)
[![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)
[![Build status](https://ci.appveyor.com/api/projects/status/mdoohms52gnq6law?svg=true)](https://ci.appveyor.com/project/neka-nat/probreg)
[![PyPI version](https://badge.fury.io/py/probreg.svg)](https://badge.fury.io/py/probreg)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["nekanat <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.7"
python = ">=3.7,<3.10"
pybind11 = "^2.6.2"
six = "^1.15.0"
scipy = "^1.6.0"
Expand Down

0 comments on commit 58592f8

Please sign in to comment.