Skip to content

Commit

Permalink
modify Miniconda installation in GitHub build action
Browse files Browse the repository at this point in the history
This is following https://stackoverflow.com/questions/72703363/how-to-activate-conda-environment-in-github-actions
as a guide to activate the conda environment so that pytest-cov
is correctly picked up
  • Loading branch information
widdowquinn committed Feb 21, 2024
1 parent 8b86577 commit 0a3c0f3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build-on-push-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,30 @@ jobs:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
# - name: Install Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.11"

- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.11"
activate-environment: pyani-github
auto-activate-base: false
channels: defaults,bioconda,conda-forge
channel-priority: flexible
run: |
conda info
conda list
- name: Install pip
run: python -m pip install --upgrade pip
Expand Down

0 comments on commit 0a3c0f3

Please sign in to comment.