Skip to content

Adding Github actions. #17

Adding Github actions.

Adding Github actions. #17

Workflow file for this run

name: "Tests"
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '20 17 * * 5'
jobs:
tests:
name: Test on node ${{ matrix.os }} with ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, macos-14] #[ubuntu-latest, macos-latest]
python_version: ['3.12'] #['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout repository
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 --upgrade pip pytest pytest-asyncio
pip install -vv -e '.'
if: matrix.os == 'ubuntu-latest'
- name: Install dependencies (clang)
env:
CC: clang
run: |
$(brew --prefix llvm@15)/bin/clang
$(brew --prefix llvm@15)/bin/clang --version
python -m pip install --upgrade pip pytest pytest-asyncio
pip install -vv -e '.'
if: matrix.os == 'macos-latest'
- name: Install dependencies (gcc)
env:
CC: clang
run: |
$(brew --prefix llvm@15)/bin/clang
$(brew --prefix llvm@15)/bin/clang --version
python -m pip install --upgrade pip pytest pytest-asyncio
pip install -vv -e '.'
if: matrix.os == 'macos-14'
- name: Test with pytest
run: |
pytest -vv tests/