Skip to content

use setup_micromamba #45

use setup_micromamba

use setup_micromamba #45

Workflow file for this run

name: pytest
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
# execute commands with conda aware shell by default:
defaults:
run:
shell: bash -l {0}
jobs:
main:
name: pytest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
py: ['3.8', '3.9', '3.10', '3.11']
pandas: [ '1.*' ]
include:
- os: ubuntu-latest
py: '3.10'
pandas: '1.4'
- os: ubuntu-latest
py: '3.10'
pandas: '2.*'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0' # Fetch all history for all tags and branches
- uses: CagtayFabry/pydeps2env@main
with:
file: 'pyproject.toml'
channels: 'conda-forge'
extras: 'test all'
setup_requires: 'include'
- name: Setup Conda Environment
uses: mamba-org/[email protected]
with:
environment-file: ./environment.yml
environment-name: pytcs
cache-environment: true
create-args: >-
python=${{ matrix.py }}
pandas=${{ matrix.pandas }}
- name: activate env
run: micromamba activate pytcs
- name: pip installs
run: |
python -m pip install -e .
- name: run pytest
run: |
pytest