Skip to content

Another try

Another try #16

Workflow file for this run

name: Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
strategy:
matrix:
python-version: ['3.8', '3.x']
os:
- ubuntu-latest
#- macos-latest
#- windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/setup-build-env
- name: Preparing environment
run: |
# try using miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update -q conda
conda info -a
- name: Install py3nj
run: |
conda create -n test_env
export PATH="$HOME/miniconda/bin:$PATH"
source activate test_env
conda list
pip install .
- name: Install test dependencies
run: |
pip install pytest
- name: Run test suite
run: |
pytest