trying to fix #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Micromamba | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl | |
mkdir -p $HOME/micromamba | |
curl -L https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj -C $HOME/micromamba --strip-components=1 bin/micromamba | |
- name: Create environment | |
run: | | |
$HOME/micromamba/micromamba create --name just-agents -y -c conda-forge python=${{ matrix.python-version }} | |
$HOME/micromamba/micromamba install -n just-agents -f environment.yaml -y -c conda-forge | |
- name: Set up Micromamba environment | |
run: | | |
echo "$HOME/micromamba/bin:$HOME/micromamba/envs/just-agents/bin" >> $GITHUB_PATH | |
echo "MAMBA_ROOT_PREFIX=$HOME/micromamba" >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
source $HOME/micromamba/etc/profile.d/micromamba.sh | |
micromamba activate just-agents | |
pytest |