Add download stats badge. #154
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: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: [ | |
"3.8", "3.9", "3.10", "3.11", "3.12.2", | |
"pypy3.8", "pypy3.9", "pypy3.10" | |
] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -e '.[dev]' | |
- name: Format | |
run: black --check --diff green example | |
if: matrix.python-version == '3.12.2' && matrix.os == 'ubuntu-latest' | |
- name: Mypy | |
run: mypy green example | |
if: matrix.python-version == '3.12.2' && matrix.os == 'ubuntu-latest' | |
- name: Test | |
run: | | |
green -tvvvv green | |
cd example && green -tvvvv proj | |
- name: Generate coverage | |
run: | | |
pip install --upgrade coveralls | |
green -tvvvvr green | |
if: matrix.python-version == '3.12.2' && matrix.os == 'ubuntu-latest' | |
- name: Coveralls | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: matrix.python-version == '3.12.2' && matrix.os == 'ubuntu-latest' |