Bump actions/cache from 3 to 4 #284
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Cache python modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
python -m pip install flake8 pytest pytest-cov | |
python -m pip install wheel | |
python setup.py bdist_wheel | |
python -m pip install dist/rankingbot-*.whl | |
- name: Lint | |
run: flake8 -v | |
- name: Test | |
run: pytest --cov-report=xml --cov=./ | |
env: | |
BOT_TEST: '1' | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |