Skip to content

Commit 2de1d4e

Browse files
committed
Switch CI to Github Actions
1 parent 7f6d1be commit 2de1d4e

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/python_testing.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python package unit testing
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install nose
25+
pip install -r requirements.txt
26+
- name: Build package
27+
run: |
28+
python setup.py build
29+
- name: Run unit tests
30+
run: |
31+
nosetests -v

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Py-BOBYQA: Derivative-Free Solver for Bound-Constrained Minimization
33
====================================================================
44

5-
.. image:: https://travis-ci.org/numericalalgorithmsgroup/pybobyqa.svg?branch=master
6-
:target: https://travis-ci.org/numericalalgorithmsgroup/pybobyqa
5+
.. image:: https://github.com/numericalalgorithmsgroup/pybobyqa/actions/workflows/python_testing.yml/badge.svg
6+
:target: https://github.com/numericalalgorithmsgroup/pybobyqa/actions
77
:alt: Build Status
88

99
.. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg

0 commit comments

Comments
 (0)