-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re #315 - Remove travis + switch to GitHub Actions
- Loading branch information
1 parent
ccfb4e0
commit 165a7dd
Showing
5 changed files
with
80 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |