replacing circleci with github actions

This commit is contained in:
João Moura
2024-01-10 12:05:42 -03:00
parent 155368be3b
commit 786691e97e
2 changed files with 35 additions and 1 deletions

34
.github/workflows/tests.yml vendored Normal file
View 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
View File

@@ -2281,4 +2281,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
[metadata]
lock-version = "2.0"
python-versions = ">=3.9,<4.0"
content-hash = "f2d317ce53e6675941e2e139b7ccf881bbd988890c3764c153f08190a16ebd79"
content-hash = "3e82d00e03f8136c50e14d79c0e7bff5becc28edd1125ba35964946bcde96523"