Skip to content

ci: add tests and github action #1

ci: add tests and github action

ci: add tests and github action #1

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Create data directories
run: |
mkdir -p data/data-3rd-party
mkdir -p data/forecast
- name: Run tests
run: |
python -m pytest tests/canswim/test_*.py -v