Skip to content

CI

CI #385

Workflow file for this run

name: CI
on:
schedule:
- cron: "37 0 * * 0" # At 00:37 on every Sunday.
push:
branches:
- main
pull_request:
branches:
- main
# If you trigger a new workflow while the previous one is running,
# this will cancel the previous one.
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# Use matrix strategy to run the tests on multiple Py versions on multiple OSs.
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install the Dependencies
run: |
echo "Installing the dependencies..."
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Check Linter
run: |
echo "Checking linter formatting..."
make lint-check
- name: Run Tests
run: |
echo "Running the tests..."
export PYTHONWARNINGS="ignore" && pytest -v -s -k 'not integration'