added component scan feature #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test python code and upload coverage reports to Codecov | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Test python code | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install pytest and coverage | |
run: pip install pytest pytest-cov | |
- name: Run tests and collect coverage | |
run: pytest --cov ./autowired | |
- name: Upload coverage reports to Codecov | |
run: | | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov -t ${CODECOV_TOKEN} |