Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: tests

on:
push:
branches: [main]
pull_request:
branches: [main]

# Third-party actions are pinned by full commit SHA (with a `# vN.M.P`
# comment noting the tag at pin time) so that supply-chain attacks on the
# action repos can't silently introduce new behavior. Dependabot/renovate
# can bump these the same way it bumps any other dependency.

jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.12'
- name: Install style tools
run: |
python -m pip install --upgrade pip
pip install black flake8 pep8-naming
- name: black
run: black --diff --check .
- name: flake8
run: flake8

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Tests run `git blame` against historical SHAs in the repo's own
# history; the default shallow clone (fetch-depth: 1) breaks them.
fetch-depth: 0
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt coverage
pip install -e .
- name: Run tests
run: PYTHONPATH=. coverage run $(which pytest)
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
flags: py${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
env:
OS: ${{ runner.os }}
PYTHON: ${{ matrix.python-version }}
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Contrib

[![PyPI version](https://badge.fury.io/py/contrib.svg)](https://badge.fury.io/py/contrib)
[![Build Status](https://travis-ci.com/spack/contrib.svg?branch=master)](https://travis-ci.com/spack/contrib)
[![codecov](https://codecov.io/gh/spack/contrib/branch/master/graph/badge.svg)](https://codecov.io/gh/spack/contrib)
[![tests](https://github.com/spack/contrib/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/spack/contrib/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/spack/contrib/branch/main/graph/badge.svg)](https://codecov.io/gh/spack/contrib)
[![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A python package for making stacked area plots of contributions to a git
Expand Down
1 change: 0 additions & 1 deletion contrib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import bisect
import collections
import contextlib
import glob
import json
import sys
import re
Expand Down