Build #41
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
name: Build | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
build-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: test | |
python-version: 3.8 | |
auto-activate-base: false | |
- name: Install Dependencies | |
shell: bash -l {0} | |
run: | | |
conda install -c conda-forge omero-py flake8 black cookiecutter | |
- name: Generate Repository | |
shell: bash -l {0} | |
run: | | |
conda activate test | |
cookiecutter . --no-input | |
rm -Rf omero-somethingshort/.github/workflows/ | |
- name: Install Generated Repositority Dependencies | |
shell: bash -l {0} | |
run: | | |
conda activate test | |
cd omero-somethingshort | |
pip install -e .[all] | |
- name: Check code | |
shell: bash -l {0} | |
run: | | |
conda activate test | |
cd omero-somethingshort | |
flake8 . | |
black --check . |