chore(deps): lock file maintenance #334
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install pipenv and all dependencies for Yuptoo | |
run: | | |
pip install pipenv | |
pipenv install --dev | |
- name: Lint with flake8 | |
run: | | |
pipenv run flake8 | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install pipenv and all dependencies for Yuptoo | |
run: | | |
pip install pipenv | |
pipenv install --dev | |
- name: Install pytest-cov to produce coverage reports | |
run: | | |
pip install pytest-cov | |
- name: Test with pytest | |
run: | | |
pipenv run python -m pytest --cov=yuptoo tests | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
flags: unittests | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |