Skip to content

Commit

Permalink
CI: Add main test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
math-fehr committed Dec 7, 2024
1 parent e621803 commit 5c0a705
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI - Python-based Testing

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- main
pull_request:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: |
setup.py
- name: Upgrade pip
run: |
pip install --upgrade pip
- name: Install the package and dev dependencies locally
run: pip install -e ".[dev]"

- name: Run all tests
run: |
make tests-functional

0 comments on commit 5c0a705

Please sign in to comment.