Skip to content

Commit

Permalink
Merge pull request #3 from joey-kilgore/init-ci
Browse files Browse the repository at this point in the history
Added initial ci
  • Loading branch information
joey-kilgore authored Jun 25, 2024
2 parents 6857028 + aae3079 commit 5a1c76d
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

name: CI

on:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- main
schedule:
# At 17:31 every Tuesday (UTC)
# At 9:31 every Tuesday (PST)
- cron: "31 17 * * 2"
workflow_dispatch:

jobs:
# Run tests
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.12"]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v4

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

- name: Install Dependencies
run: |
pip install .[test]
- name: Test
run: |
pytest tests/
# Check linting, formating, types, etc.
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install Dependencies
run: |
pip install pre-commit
- name: Lint
run: |
pre-commit run --all-files

0 comments on commit 5a1c76d

Please sign in to comment.