From 15507b9669c3e9c086b74c277e799b73975f70fe Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 14 Jun 2024 15:55:10 +0100 Subject: [PATCH] new framework --- .github/workflows/run.yml | 42 ++++++++++++++++++++++++++++++ README.md | 54 ++++++++++++++++----------------------- main.py | 50 +++++++----------------------------- 3 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 .github/workflows/run.yml diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml new file mode 100644 index 0000000..2ba0bf9 --- /dev/null +++ b/.github/workflows/run.yml @@ -0,0 +1,42 @@ +name: run +on: + push: + branches: ['**'] + tags: ['**'] + paths-ignore: ['LICENSE*', 'LICENCE*', 'README.md'] +jobs: + check: + defaults: {run: {shell: 'bash -el {0}'}} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: {mamba-version: "*", channels: conda-forge} + - name: Install dependencies + run: | + conda activate test + if test -f apt.txt; then + sudo apt-get update + xargs -a apt.txt sudo apt-get install -y + fi + if test -f environment.yml; then + conda install --file environment.yml + fi + if test -f requirements.txt; then + pip install -r requirements.txt + fi + - name: Test imports + run: + conda activate test + python <