Merge pull request #102 from CodethinkLabs/bobclough/fix-duplicate-me… #303
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: Run Test Suite | |
on: [push] | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# checkout full tree | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install .[dev] | |
- name: Testing the code with pytest | |
run: | | |
python -m pytest --cov=lifecycle --cov-report=term --cov-report=xml | |
cat coverage.xml | |
coverage report --fail-under=80 | |
smoketest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# checkout full tree | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Make sure lifecycle can be installed and run using pipenv | |
run: | | |
python -m pip install pipenv | |
pipenv install --skip-lock | |
pipenv run lifecycle --help |