Changed test environ. #138
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: | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
branches: [master] | |
jobs: | |
build_install_test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt update && sudo apt install graphviz | |
python -m pip install --upgrade pip | |
pip install virtualenv | |
pip install build==0.4.0 | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Build package | |
run: | | |
python -m build | |
- name: Install package (editable mode) | |
run: | | |
pip install -e . | |
- name: Test with pytest | |
run: | | |
pytest |