Another try #16
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: 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 |