Skip to content

Commit

Permalink
chore: initialize pytest and create workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BallardRobinett committed Feb 13, 2024
1 parent 989ebd9 commit b938465
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pytest

on:
push:
branches: [main, develop, 73-initialize-pytest]
pull_request:
branches: [main, develop, 73-initialize-pytest]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install dependencies
run: |
cd server
pip install -r requirements.txt
- name: Run pytest
run: |
cd server
pytest
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
"hooks": {
"before:git:beforeRelease": "./.bin/pre-commit-format.sh CHANGELOG.md"
}
},
"dependencies": {
"pytest": "^1.0.0"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2658,6 +2658,11 @@ pupa@^3.1.0:
dependencies:
escape-goat "^4.0.0"

pytest@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/pytest/-/pytest-1.0.0.tgz#5fa23778c77a937209b5d2560e1246dda9507fe6"
integrity sha512-nh2Z5MFd6WyMqUYvLoTrbGpkcI1Gb2GQ2HmdaGZ0h4lCc8FENRhSr5lcHKSK9KIQ9gfrUT5zJaxRbaA/1XjLlA==

queue-microtask@^1.2.2:
version "1.2.3"
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
Expand Down

0 comments on commit b938465

Please sign in to comment.