Skip to content

tests fix

tests fix #23

Workflow file for this run

# Github workflow runner instructions using cutomized actions
name: Refresher CI — Native
on: [ push ]
jobs:
test-native:
runs-on: ubuntu-latest
name: test native
steps:
########## CHECK OUT REPO AND PRINT REPO INFO #######
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Intro to job runner
run: |
echo "job runner details "
echo "Event: ${{ github.event_name }}"
echo "os: ${{ runner.os }} server."
echo "Repository: ${{ github.repository }}:${{ github.ref_name }}."
ls ${{ github.workspace }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
- name: Install dependencies
run: |
pip install pyfiglet
poetry install --no-interaction --no-root
pyfiglet Packages Downloaded
- name: Run coverage test local
run: |
poetry run coverage run manage.py test apps
poetry run coverage xml --data-file=.coverage
- name: Upload to CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.codecov_token }} # not required for public repos
files: ./coverage.xml
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)