Skip to content

Commit

Permalink
feat: CI test runner (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiky30 authored Jan 24, 2024
1 parent 509b68f commit 56d5a75
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test
on:
push:
branches-ignore:
- "release/**"

jobs:
build-and-test:
name: Test code
runs-on: ubuntu-latest

steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Install packages
run: pip install -r requirements.txt

- name: Run tests
run: pytest
Empty file added conftest.py
Empty file.
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
asgiref==3.7.2
build==0.10.0
cfgv==3.4.0
distlib==0.3.8
Django==5.0.1
filelock==3.13.1
identify==2.5.33
iniconfig==2.0.0
nodeenv==1.8.0
packaging==23.1
platformdirs==4.1.0
pluggy==1.4.0
pre-commit==3.6.0
pyproject_hooks==1.0.0
pytest==7.4.4
PyYAML==6.0.1
setuptools-scm==7.1.0
sqlparse==0.4.4
tomli==2.0.1
typing_extensions==4.7.1
virtualenv==20.25.0
Empty file.
2 changes: 2 additions & 0 deletions shedpi_hub_dashboard/tests/test_runs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_runs():
assert True

0 comments on commit 56d5a75

Please sign in to comment.