Skip to content

note: sync_period configurable #646

note: sync_period configurable

note: sync_period configurable #646

name: sfy-processing
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
runs-on: ubuntu-latest
env:
SFY_READ_TOKEN: ${{ secrets.SFY_READ_TOKEN }}
SFY_SERVER: ${{ secrets.SFY_SERVER }}
SFY_DATA_CACHE: /tmp/sfy
CACHE_NUMBER: 2
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- uses: actions/cache@v2
with:
path: /usr/share/miniconda
key: ${{ runner.os }}-conda-${{ hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER }}
id: cache
- name: Install dependencies
run: |
mamba env list
mamba env update --file environment.yml --name base
if: steps.cache.outputs.cache-hit != 'true'
- name: Test with pytest
run: |
cd sfy-processing/
mamba install -y pytest pytest-benchmark
pytest