Skip to content

Commit

Permalink
Merge pull request #220 from jonnor/github-actions
Browse files Browse the repository at this point in the history
Move to GitHub Action for CI from Travis
  • Loading branch information
majianjia committed Apr 7, 2024
2 parents dd4d0b7 + ad83485 commit efce43a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 55 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python package

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- 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 OS dependencies
run: |
sudo apt-get install -yqq python-tk scons git
- name: Install Python dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements.dev.txt ]; then pip install -r requirements.dev.txt; fi
- name: Install as pip package
run: |
pip install ./ -v
- name: Test installed package
working-directory: examples/auto_test
run: |
python main.py -
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tensorflow-cpu==2.14.1
matplotlib
scikit-learn
numpy

0 comments on commit efce43a

Please sign in to comment.