Skip to content

Commit c87bd73

Browse files
Added tests for GitHub CI flow to make sure all edits past the tests before merging
1 parent 062a6dd commit c87bd73

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install Poetry
25+
run: curl -sSL https://install.python-poetry.org | python3 -
26+
27+
- name: Install dependencies
28+
run: |
29+
poetry install
30+
poetry run python -m pip install pytest
31+
# We have some tests that do HTTP request for URL validation, so its best to have a 5 minute timeout so the tests wont be overextended
32+
- name: Run tests
33+
timeout-minutes: 5
34+
run: poetry run pytest tests/ -v

0 commit comments

Comments
 (0)