Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflows): add reusable pytest actions #3232

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

bouttier
Copy link
Contributor

@bouttier bouttier commented Oct 16, 2024

Action réutilisable par les modules GeoNature pour lancer les tests pytest.

Usage:

name: pytest

on:
  push:
    branches:
      - main
      - develop
  pull_request:

jobs:
  build:
    uses: pnx-si/geonature/.github/workflows/gn-module-pytest.yml@master
    with:
      geonature_ref: "develop"

Exemple: https://github.com/PnX-SI/gn_module_permrequests/blob/main/.github/workflows/pytest.yml

Perspectives :

  • configurer la commande d’installation
  • configurer la commande de test
  • activer l’envoi du code coverage → fait, à tester
  • si la ref geonature n’est pas fournit, utiliser la ref de l’action plutôt que master (ce qui revient au même si on utilise la version master de l’action) (pas si simple, voir cf https://github.com/dariocurr/checkout-called)

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.86%. Comparing base (46ecee3) to head (f3ce851).
Report is 8 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3232      +/-   ##
===========================================
+ Coverage    81.95%   83.86%   +1.91%     
===========================================
  Files           86      122      +36     
  Lines         6965     9646    +2681     
===========================================
+ Hits          5708     8090    +2382     
- Misses        1257     1556     +299     
Flag Coverage Δ
pytest 83.86% <ø> (+1.91%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bouttier bouttier force-pushed the feat/gn-module-pytest branch 4 times, most recently from ca34277 to 8159bff Compare October 25, 2024 16:01
@camillemonchicourt camillemonchicourt added this to the 2.15 milestone Oct 28, 2024
@bouttier bouttier force-pushed the feat/gn-module-pytest branch from 8159bff to 8f2d8a5 Compare October 29, 2024 10:57
@bouttier bouttier force-pushed the feat/gn-module-pytest branch from 8f2d8a5 to f3ce851 Compare October 29, 2024 12:02
@bouttier bouttier merged commit 6406f16 into develop Oct 29, 2024
9 checks passed
@bouttier bouttier deleted the feat/gn-module-pytest branch October 29, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants