From 034222ffe3e3f3858d7bf47cbecdfd945d8b16b1 Mon Sep 17 00:00:00 2001 From: Mostafa Farrag Date: Wed, 6 Mar 2024 23:18:30 +0100 Subject: [PATCH] add conda deployment workflow --- .github/workflows/conda-deployment.yml | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/conda-deployment.yml diff --git a/.github/workflows/conda-deployment.yml b/.github/workflows/conda-deployment.yml new file mode 100644 index 0000000..ebee596 --- /dev/null +++ b/.github/workflows/conda-deployment.yml @@ -0,0 +1,46 @@ +name: conda-deployment + +on: [push] + +jobs: + Main-package: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.11", "3.12"] + env: + OS: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - uses: conda-incubator/setup-miniconda@v2 + with: + mamba-version: "*" + #use-mamba: true + auto-update-conda: false + #environment-file: environment.yml + auto-activate-base: false + activate-environment: test + python-version: ${{ matrix.python-version }} + channels: conda-forge,defaults + channel-priority: true + show-channel-urls: true + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + + - name: Install dependencies + run: | + poetry install + + - name: Generate coverage report + shell: bash -el {0} + run: | + conda info + conda list + conda config --show-sources + conda config --show + pytest -sv