Skip to content

Commit

Permalink
Create run-hurl-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lgwallis authored Nov 2, 2024
1 parent 7314afe commit 66b83e0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/run-hurl-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Hurl Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Django and Hurl dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get update
sudo apt-get install -y hurl
- name: Run Django Server
run: python manage.py runserver &

- name: Run Hurl Tests
run: hurl tests/test_endpoints.hurl

0 comments on commit 66b83e0

Please sign in to comment.