Skip to content

Commit

Permalink
Merge branch 'master' into 143-setting-file-refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutaj committed Nov 5, 2023
2 parents 722c1f7 + 5ad8bc5 commit 79710c7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip3 install --upgrade setuptools
pip3 install .[dev]
- name: Run tests
run: |
ss-manager -h
pytest -v
shell: bash
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dev =
isort
black
mypy
pytest

[flake8]
max-line-length = 100
Expand Down
9 changes: 9 additions & 0 deletions tests/test_hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pytest


def hello():
return "Hello, world!"


def test_hello():
assert hello() == "Hello, world!"

0 comments on commit 79710c7

Please sign in to comment.