Skip to content

Commit

Permalink
Merge pull request #53 from Doist/tartandsandal/add-test-workflow
Browse files Browse the repository at this point in the history
chore: Add test workflows
  • Loading branch information
tartansandal authored Apr 28, 2023
2 parents b999714 + 9ec087a commit 4305b4c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run test suite

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
name: "Python ${{ matrix.python-version }}"
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Install redis
run: |
sudo apt-get install redis -y
- name: Run tests
run: poetry run pytest -vv

0 comments on commit 4305b4c

Please sign in to comment.