From 30268168369ac46e9e1b85de4fe55069b78af3a9 Mon Sep 17 00:00:00 2001 From: IAlibay Date: Fri, 7 Apr 2023 11:15:42 +0100 Subject: [PATCH 1/2] conda cron job canary --- .github/workflows/conda_cron.yaml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/conda_cron.yaml diff --git a/.github/workflows/conda_cron.yaml b/.github/workflows/conda_cron.yaml new file mode 100644 index 000000000..ec53f07b6 --- /dev/null +++ b/.github/workflows/conda_cron.yaml @@ -0,0 +1,51 @@ +name: "conda_cron" +on: + pull_request: + branches: + - main + push: + branches: + - main + schedule: + # At 07:00 UTC every day + - cron: "0 7 * * *" + +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true + +defaults: + run: + shell: bash -l {0} + +jobs: + condacheck: + runs-on: ${{ matrix.OS }}-latest + name: "daily conda check" + strategy: + fail-fast: false + matrix: + os: ['ubuntu', 'macos'] + python-version: + - "3.9" + - "3.10" + + steps: + - name: Setup Micromamba + uses: mamba-org/provision-with-micromamba@main + with: + environment-file: False + environment-name: openfe + channels: conda-forge + extra-specs: | + python==${{ matrix.python-version }} + + - name: "Install openfe + optional deps" + run: micromamba install openfe pytest -c conda-forge + + - name: "Run tests" + run: pytest --pyargs openfe openfecli + + - name: "WIP" + run: | + micromamba list From 6feaa62b07bf169a9a52affea988af23521e9058 Mon Sep 17 00:00:00 2001 From: Irfan Alibay Date: Thu, 13 Apr 2023 15:05:32 +0100 Subject: [PATCH 2/2] Update conda_cron.yaml --- .github/workflows/conda_cron.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/conda_cron.yaml b/.github/workflows/conda_cron.yaml index ec53f07b6..6f7dcc8f7 100644 --- a/.github/workflows/conda_cron.yaml +++ b/.github/workflows/conda_cron.yaml @@ -44,6 +44,8 @@ jobs: run: micromamba install openfe pytest -c conda-forge - name: "Run tests" + env: + OFE_SLOW_TESTS: "true" run: pytest --pyargs openfe openfecli - name: "WIP"