This repository has been archived by the owner on Nov 16, 2024. It is now read-only.
chore(deps): update docker/login-action action to v3 #144
Workflow file for this run
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: "Native Build & Test" | |
on: | |
pull_request: | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ 3.7, 3.8, 3.9 ] | |
poetry-version: [ 1.2.2 ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install | |
run: poetry install | |
- id: files | |
name: Changed Files Exporter | |
uses: futuratrepadeira/[email protected] | |
with: | |
repo-token: ${{ github.token }} | |
pattern: '^.*\.py$' | |
- name: Check type hints | |
run: | | |
if [ -n "${{ steps.files.outputs.files_created }}" ] || [ -n "${{ steps.files.outputs.files_updated }}" ] | |
then | |
poetry run mypy --show-error-context --show-column-numbers --show-error-codes --pretty ${{ steps.files.outputs.files_created }} ${{ steps.files.outputs.files_updated }} | |
fi | |
- name: Test with pytest | |
run: | | |
poetry run pytest tests/ --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html |