Skip to content

Commit

Permalink
Add a basic CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daffidwilde committed Oct 27, 2023
1 parent 9ea8605 commit 9d22215
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
push:
branches:
- main
- "dev*"

jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.11]

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Update pip and install the package
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Run tests
run: |
python -m pytest tests

0 comments on commit 9d22215

Please sign in to comment.