Update README.md #638
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest'] | |
python-version: ['3.8', '3.9'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: false | |
python-version: ${{ matrix.python-version }} | |
conda-channels: anaconda, conda-forge | |
- run: conda --version | |
- run: python --version | |
- run: conda install python=${{ matrix.python-version }} "certifi=2021.5.30" | |
- name: Build | |
run: | | |
pip3 install .[test,doc] | |
python setup.py install | |
- name: Test | |
run: | | |
pytest tests | |