Skip to content

Commit

Permalink
testing GHA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermiah committed Nov 19, 2023
1 parent f861774 commit b776c53
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: Unit Testsfrom nbiatoolkit import NBIAClient

on: [push]

Expand All @@ -12,22 +12,24 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
pip install ruff
ruff --format=github --target-version=py310 .
continue-on-error: true
- name: Install poetry
uses: snok/install-poetry@v1

- name: Install package
run: poetry install

- name: Test with pytest
run: |
coverage run -m pytest -v -s
- name: Generate Coverage Report
run: |
coverage report -m
poetry run pytest tests/ --cov=nbiatoolkit --cov-report=xml

0 comments on commit b776c53

Please sign in to comment.