Skip to content

Commit

Permalink
Add simple github action to run tests (#42)
Browse files Browse the repository at this point in the history
* add simple github action to run tests

* fix matrix names

* bump lxml

* drop circleci config

* drop circleci image from the readme
  • Loading branch information
AlecRosenbaum authored Jun 24, 2024
1 parent eb90955 commit b7f70e4
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 57 deletions.
52 changes: 0 additions & 52 deletions .circleci/config.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: test-workflow
on:
# When any branch in the repository is pushed
push:
# When a pull request is created
pull_request:
# When manually triggered to run
workflow_dispatch:

jobs:
lint:
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
name: Lint ${{ matrix.python-version }}
runs-on: 'ubuntu-20.04'
container: python:${{ matrix.python-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Lint code
run: |
pip install lintlizard==0.18.0 "click<8.1"
lintlizard
# Run tests
test:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
# Do not cancel any jobs when a single job fails
fail-fast: false
name: Python ${{ matrix.python-version }}
runs-on: 'ubuntu-20.04'
container: python:${{ matrix.python-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: |
CFLAGS="-O0" pip install -r requirements_tests.txt
- name: Run tests
run: pytest
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
==========
quotequail
==========
.. image:: https://circleci.com/gh/closeio/quotequail/tree/master.svg?style=svg&circle-token=493e282bf7e3bf5e72bf3e255a116534ed8a79ab
:target: https://circleci.com/gh/closeio/quotequail/tree/master

A library that identifies quoted text in plain text and HTML email messages.
quotequail has no mandatory dependencies, however using HTML methods require
Expand Down
5 changes: 2 additions & 3 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
--no-binary lxml
lxml==4.9.1
pytest==7.1.3
lxml==5.1.0
pytest==7.1.3

0 comments on commit b7f70e4

Please sign in to comment.