Skip to content

Commit beb6172

Browse files
committed
ci(build_and_test.yml): use github workflow instead of travis
1 parent 2bf7821 commit beb6172

File tree

2 files changed

+40
-21
lines changed

2 files changed

+40
-21
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: build-and-test
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, windows-latest]
18+
python-version: ["3.6"]
19+
defaults:
20+
run:
21+
shell: bash
22+
runs-on: ${{ matrix.os }}
23+
timeout-minutes: 30
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v3
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
- name: Install dependencies
31+
run: |
32+
pip install cython
33+
pip install -r requirements.txt
34+
pip install pytest
35+
- name: Build
36+
run: pip setup.py install
37+
- name: Test with pytest
38+
run: |
39+
python -m geatpy --version
40+
pytest

.travis.yml

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

0 commit comments

Comments
 (0)