Skip to content

Cache pip dependencies for ci. #592

Cache pip dependencies for ci.

Cache pip dependencies for ci. #592

Workflow file for this run

name: ci
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install -r requirements_test.txt
- name: Test with tox
run: tox
- if: github.event_name != 'pull_request'
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: coverage xml