Skip to content

adding tests

adding tests #68

Workflow file for this run

name: Testing
on:
push:
pull_request:
workflow_dispatch:
# Minimum permissions required by skip-duplicate-actions
permissions:
actions: write
contents: read
jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
do_not_skip: '["workflow_dispatch"]'
concurrent_skipping: 'same_content_newer'
paths_ignore: '["**/README.md", "**/docs/**"]'
testing:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.9"
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
# - uses: pre-commit/[email protected]
- name: Install dependencies
run: pip install ".[dev]"
- name: Run tests
run: |
xonsh -c "xontrib load chatgpt"
xonsh -c "pytest tests/"