Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Mar 8, 2024
1 parent dcc23cc commit 5dd9a7d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
- pull_request
- push

name: build

jobs:
test:
runs-on: ubuntu-latest
services:
memcached:
image: memcached
ports:
- 11211/tcp
options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
#cache: 'pip'
#cache-dependency-path: 'requirements-dev.txt'

- name: Prepare
run: |
pip install pytest flask
- name: run test
run: |
pytest -v .

0 comments on commit 5dd9a7d

Please sign in to comment.