Skip to content

Commit

Permalink
Add CI Check For Testing Suite (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
AFg6K7h4fhy2 authored Nov 21, 2024
1 parent 31e95cf commit 23d8eec
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/pre-commit/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pre-commit
name: Pre-Commit
description: run pre-commit
inputs:
extra_args:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Workflow For Tests In Forecasttools

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: cache poetry
uses: actions/cache@v4
with:
path: ~/.local
key: ${{ runner.os }}-poetry

- name: install poetry
run: pip install poetry

- name: install package
run: poetry install --with test

- name: run tests
run: |
poetry run pytest
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ nbclient = "^0.10.0"
jupyter = "^1.1.1"



[tool.poetry.group.test.dependencies]
pytest = "^8.3.3"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 23d8eec

Please sign in to comment.