Skip to content

docs: Update Docker registry URL (DockerHub mathilde25) #1

docs: Update Docker registry URL (DockerHub mathilde25)

docs: Update Docker registry URL (DockerHub mathilde25) #1

Workflow file for this run

name: 🏗️ Build
on:
push:
jobs:
build-pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: 👷🏻 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt pytest
- name: 🕵🏻 Test with pytest
run: pytest --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: 🚀 Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
build-pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 👷🏻 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt pylint pylint-exit
- name: 🕵🏻 Analyse code with pylint
run: |
pylint --init-hook="import sys; import os; sys.path.append(os.path.abspath('.'));" $(git ls-files '*.py') || pylint-exit $?