Skip to content

Adding Github actions. #2

Adding Github actions.

Adding Github actions. #2

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, ubuntu-latest]
python_version: ['3.8', '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
pip install -e '.[dev]'
- name: Test with pytest
run: |
pytest -vv