Skip to content

Test multiple Python versions #99

Test multiple Python versions

Test multiple Python versions #99

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
version: ['3.8', '3.9', '3.10', '3.11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements.dev.txt
- name: Test with mypy
run: |
python -m mypy cryptocompare/cryptocompare.py
- name: Test with pytest
run: |
python -m pytest --cov=cryptocompare tests/