Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/CogitoNTNU/CrawlAI
Browse files Browse the repository at this point in the history
  • Loading branch information
LockedInTheSkage committed Sep 3, 2024
2 parents 6f6f76b + 2c60894 commit 98772e4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: CI

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

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest
File renamed without changes.
17 changes: 14 additions & 3 deletions tests/test_enviroment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@

from src.environment import Environment
from src.enviroment import Enviroment

def test_create_environment():
env = Environment()
assert env is not None
assert env is not None












0 comments on commit 98772e4

Please sign in to comment.