mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
replacing circleci with github actions
This commit is contained in:
34
.github/workflows/tests.yml
vendored
Normal file
34
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Run Tests
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Install Requirements
|
||||||
|
run: |
|
||||||
|
sudo apt-get update &&
|
||||||
|
pip install poetry &&
|
||||||
|
poetry lock &&
|
||||||
|
poetry install
|
||||||
|
|
||||||
|
- name: Set ENV vars
|
||||||
|
run: |
|
||||||
|
echo 'export OPENAI_API_KEY=fake-api-key' >> "$BASH_ENV" &&
|
||||||
|
source "$BASH_ENV"
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: poetry run pytest
|
||||||
2
poetry.lock
generated
2
poetry.lock
generated
@@ -2281,4 +2281,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = ">=3.9,<4.0"
|
python-versions = ">=3.9,<4.0"
|
||||||
content-hash = "f2d317ce53e6675941e2e139b7ccf881bbd988890c3764c153f08190a16ebd79"
|
content-hash = "3e82d00e03f8136c50e14d79c0e7bff5becc28edd1125ba35964946bcde96523"
|
||||||
|
|||||||
Reference in New Issue
Block a user