Updated versioning #40
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: Install locally with pip and test via Pytest | |
on: | |
push: | |
paths: | |
- '**.py' # only run workflow when source files changed | |
jobs: | |
linux-pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: Upgrade pip | |
shell: bash -l {0} | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
pip install pytest flit | |
flit install | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
python -m pytest |