Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test self-hosted runner #384

Closed
wants to merge 10 commits into from
Closed
35 changes: 35 additions & 0 deletions .github/workflows/automatic_local_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will install Python dependencies, run unit_tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: SIMPA local tests

on:
# run SIMPA tests on pushes to the main or develop branch
push:
branches: [ main, develop ]
# and on all pull requests to the main or develop branch
pull_request:
branches: [ main, develop ]
# as well as upon manual triggers through the 'Actions' tab of the GitHub UI
workflow_dispatch:
# Additionally, run Friday morning 6AM, so that we can react quickly if things break
schedule:
- cron: "0 5 * * 5"

jobs:
build:

runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Create a clean new virtual env and activate it, Install simpa, Testing
run: |
ls
pwd
rm -rf runner-env
python3 -m venv runner-env
source runner-env/bin/activate
python -m pip install --upgrade pip
python -m pip install .
python simpa_examples/optical_and_acoustic_simulation.py
deactivate
Loading