Skip to content

chore(tests): fix tests in repo #404

chore(tests): fix tests in repo

chore(tests): fix tests in repo #404

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: πŸ“₯ Checkout the repository
uses: actions/checkout@v4
- name: πŸ› οΈ Set up Python
uses: actions/setup-python@v5
with:
fetch-depth: 2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: πŸ“¦ Install requirements
run: |
pip install tox tox-gh-actions
- name: πŸƒ Test with tox
run: tox
- name: πŸ“€ Upload coverage to Codecov
uses: "actions/upload-artifact@v4"
with:
name: coverage-data
path: "coverage.xml"
coverage:
runs-on: ubuntu-latest
needs: tests
steps:
- name: πŸ“₯ Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: πŸ“₯ Download coverage data
uses: actions/download-artifact@v4
with:
name: coverage-data
- name: πŸ“€ Upload coverage report
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}