Skip to content

Commit

Permalink
Merge pull request #14 from pjz/actions
Browse files Browse the repository at this point in the history
initial github actions CI
  • Loading branch information
pjz authored Oct 7, 2023
2 parents 5c7e988 + 6a5f6e8 commit 47cf82e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 22 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python tests

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

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

env:
VIRTUAL_ENV: /usr

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make dev
- name: Test with pytest
run: |
make test
- name: Lint with pylint
run: |
make pylint
- name: Typecheck with mypy
run: |
make mypy
20 changes: 0 additions & 20 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
Expand Up @@ -4,7 +4,7 @@ MHI
mhi is a commandline style mailreader in the tradition of mh and nmh,
but mutated to support IMAP.

[![Build Status](https://travis-ci.org/pjz/mhi.svg?branch=master)](https://travis-ci.org/pjz/mhi)
[![Build Status](https://github.com/pjz/mhi/actions/workflows/python-test.yml/badge.svg)](https://github.com/pjz/mhi/actions/workflows/python-test.yml)

Why?
----
Expand All @@ -19,7 +19,7 @@ IMAP folders), so I had to write my own client. Python's imaplib made this easy
How?
----

As of v0.6.5 MHI is available as a PyPI package (`pip install mhi`)
As of v0.6.5 MHI is available as a PyPI package (`pipx install mhi`)
The same version also incorporates the old mkLinks wrapper-script functionality
via:

Expand Down

0 comments on commit 47cf82e

Please sign in to comment.