Skip to content

πŸ”– From prod β†’ Bump version: v1.0.6-prod into main (#16) #6

πŸ”– From prod β†’ Bump version: v1.0.6-prod into main (#16)

πŸ”– From prod β†’ Bump version: v1.0.6-prod into main (#16) #6

Workflow file for this run

---
# .github/workflows/ci.yml
name: CI
on:
push:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
env:
REPO_NAME: ${{ github.event.repository.name }}
FOLDER_TO_COMPRESS: 'src'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install poetry
poetry lock
poetry install
- name: Format check with Black
run: |
source venv/bin/activate
black --check "${FOLDER_TO_COMPRESS}"/
env:
REPO_NAME: ${{ env.REPO_NAME }}
FOLDER_TO_COMPRESS: ${{ env.FOLDER_TO_COMPRESS }}
- name: Lint with Pylint
run: |
source venv/bin/activate
pylint $(git ls-files '*.py')
- name: Run tests
run: |
source venv/bin/activate
pytest --cov=app --cov-report=xml:coverage.xml || [$? -eq 5]
continue-on-error: true
- name: List files to verify coverage.xml
run: |
ls -la *.xml
cat *.xml
continue-on-error: true
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: unittests
name: codecov-umbrella
continue-on-error: true