Skip to content

Commit

Permalink
Merge pull request #1 from MPI-IS/develop
Browse files Browse the repository at this point in the history
added test workflow
  • Loading branch information
vincentberenz authored Oct 27, 2024
2 parents c839caf + a4e134c commit 40f4b3f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: unit tests

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-20.04

strategy:
matrix:
python-version: [3.9.2]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: |
poetry run pytest
4 changes: 4 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
[![Python package](https://github.com/MPI-IS/nightskycam-focus/actions/workflows/tests.yml/badge.svg)](https://github.com/MPI-IS/nightskycam-focus/actions/workflows/tests.yml)
[![PyPI version](https://img.shields.io/pypi/v/nightskycam-focus.svg)](https://pypi.org/project/nightskycam-focus/)


UNDER CONSTRUCTION

0 comments on commit 40f4b3f

Please sign in to comment.