Skip to content

Commit

Permalink
setting up github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gstenzel committed Aug 1, 2024
1 parent 76d6ff6 commit e853d0b
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python Test

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
- name: Run tests
run: |
poetry run pytest --cov=qandle --cov-report=html -W error -W ignore::PendingDeprecationWarning:semantic_version.base -W ignore::DeprecationWarning -W ignore::pytest_cov.plugin.CovDisabledWarning
- name: Check formatting
run: |
poetry run ruff check --output-format=github
29 changes: 28 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ snakeviz = "^2.2"
sphinx = "^7.4.7"
myst-nb = "^1.1.1"
sphinx-rtd-theme = "^2.0.0"
ruff = "^0.5.5"

[tool.pytest.ini_options]
testpaths = ["src/qandle/",]
Expand Down

0 comments on commit e853d0b

Please sign in to comment.