Skip to content

Commit

Permalink
Re #315 - Remove travis + switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmcdonnell committed Dec 23, 2020
1 parent ccfb4e0 commit 165a7dd
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 86 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/addie_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: addie_feature_branch

env: {}

on:
push:
branches:
- '*'

jobs:

linux:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04]
python-version: ["3.6"]

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: marshallmcdonnell,conda-forge,mantid

- name: Apt install deps
run: sudo apt-get install xvfb freeglut3-dev libglu1-mesa

- name: Conda install deps
shell: bash -l {0}
run: |
conda install mantid-workbench
conda install mantid-total-scattering-python-wrapper
conda install --file requirements.txt --file requirements-dev.txt
- name: Mantid pre-requisites
shell: bash -l {0}
run: |
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
mkdir ~/.mantid
echo "CheckMantidVersion.OnStartup=0" > ~/.mantid/Mantid.user.properties
echo "UpdateInstrumentDefinitions.OnStartup=0" >> ~/.mantid/Mantid.user.properties
echo "usagereports.enabled=0" >> ~/.mantid/Mantid.user.properties
export DISPLAY=:99.0
sleep 3
- name: Lint
shell: bash -l {0}
run: flake8 . --count

- name: Test
shell: bash -l {0}
run: |
python -c "import mantid"
python -c "import qtpy"
python -c "import mantidqt"
xvfb-run --server-args="-screen 0 640x480x24" --auto-servernum mantidworkbench --help
echo "import time;time.sleep(5)" > workbenchshutdown.py
xvfb-run --auto-servernum pytest --mpl tests
- name: Deploy to Anaconda
shell: bash -l {0}
if: startsWith( github.ref, 'refs/tags/v')
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
conda install -y anaconda-client conda-build conda-verify
cd conda.recipe
conda build --output-folder . .
anaconda upload --label main linux-64/*.tar.bz2
77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| CI | Release |
|--------|---------|
| [![Build Status](https://travis-ci.org/neutrons/addie.svg?branch=master)](https://travis-ci.org/neutrons/addie) | [![Anaconda-Server Badge](https://anaconda.org/addie-diffraction/addie/badges/version.svg)](https://anaconda.org/addie-diffraction/addie) |
| | [![Anaconda-Server Badge](https://anaconda.org/addie-diffraction/addie/badges/version.svg)](https://anaconda.org/addie-diffraction/addie) |
| | [![Anaconda-Server Badge](https://anaconda.org/addie-diffraction/addie/badges/platforms.svg)](https://anaconda.org/addie-diffraction/addie) |

ADDIE
Expand Down
8 changes: 4 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flake8
mock
pytest
pytest-mpl
pytest-qt
simplejson
pytest==6.2
pytest-mpl==0.12
pytest-qt==3.3
simplejson==3.17
typing
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mantid-total-scattering
periodictable
psutil
qtpy
simplejson
psutil==5.8
qtpy==1.6
simplejson==3.17

0 comments on commit 165a7dd

Please sign in to comment.