Skip to content

Commit

Permalink
ci: add tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Sep 19, 2024
1 parent f7525f0 commit f75ebbf
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 173 deletions.
2 changes: 2 additions & 0 deletions .github/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = --cov=aim --cov-report=term-missing:skip-covered --no-header
25 changes: 25 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests

on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create .env file
run: cat env.* > .env
- name: Load .env file
uses: xom9ikk/[email protected]
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'poetry'
- run: poetry install
- name: setup pytest.ini
run: mv .github/pytest.ini pytest.ini
- name: Run tests
run: poetry run pytest
Loading

0 comments on commit f75ebbf

Please sign in to comment.