Skip to content

Commit

Permalink
Remove travis add github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bennahugo authored Jan 24, 2024
1 parent 4914056 commit 61a80c7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 36 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

on:
push:
pull_request:
schedule:
- cron: '30 4 * * 1' # Every Monday @ 4h30am UTC

jobs:
check_skip:
runs-on: ubuntu-latest
if: |
!contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title, github.event.pull_request.body), '[skip ci]')
steps:
- run: |
cat <<'MESSAGE'
github.event_name: ${{ toJson(github.event_name) }}
github.event:
${{ toJson(github.event) }}
MESSAGE
test:
needs: check_skip
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
fi
- name: Test
run: |
eidos -d 0.5 -r 0.015625 -f 856 956 30 -P mk.holo.lband -o8
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .travis/py2.docker

This file was deleted.

7 changes: 0 additions & 7 deletions .travis/py3.docker

This file was deleted.

0 comments on commit 61a80c7

Please sign in to comment.