Skip to content

Commit

Permalink
👷 Add CI for automated python code testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Apr 18, 2024
1 parent 63f903d commit 4b8e898
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: python-tests
on:
push:
branches:
- master
pull_request:
branches:
- master
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
python-tests:
runs-on: ubuntu-latest
steps:
- name: "Checkout branch"
uses: actions/checkout@v4
- name: "Set up Python on Ubuntu"
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: "Python codestyle"
run: |
pip install ".[dev]"
pip install pytest
pytest .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "ipyaladin"
dynamic = ["version"]
dependencies = ["anywidget"]
dependencies = ["anywidget", "astropy"]
readme = "README.md"

[project.optional-dependencies]
Expand Down

0 comments on commit 4b8e898

Please sign in to comment.