generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.01 KB
/
poetry-conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Poetry in Conda
on:
push:
branches: [ main ] # Or your main branch name
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: conda-forge, bioconda
environment-file: environment.yml
activate-environment: myenv
- name: Install Poetry
run: |
source $(conda info --base)/etc/profile.d/conda.sh
conda activate myenv
conda install -c conda-forge poetry
- name: Install the module
run: |
source $(conda info --base)/etc/profile.d/conda.sh
conda activate myenv
poetry install --with dev --no-interaction
- name: Run unit tests
run: |
source $(conda info --base)/etc/profile.d/conda.sh
conda activate myenv
poetry run pytest