Skip to content

Commit

Permalink
Add workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatoschaves committed Jan 25, 2024
1 parent 84da7ce commit a1a306b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Your workflow name.
name: tests

# Run workflow on every push to master branch.
on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install and configure Poetry
uses: snok/[email protected]
with:
version: 1.7.1
virtualenvs-create: false
- name: Install dependencies
run: |
poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
- name: Test with pytest
run: |
python -m pytest --verbose --cov=stratestic --cov=tests --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false

0 comments on commit a1a306b

Please sign in to comment.