Skip to content

[Snyk] Security upgrade python from 3-slim to 3.13.0a6-slim #498

[Snyk] Security upgrade python from 3-slim to 3.13.0a6-slim

[Snyk] Security upgrade python from 3-slim to 3.13.0a6-slim #498

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
CI:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
poetry-version: ["1.3.1"]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install blacksmith
run: poetry install
- name: Check lint
run: |
poetry run flake8 .
- name: Check types
run: |
poetry run mypy src/blacksmith/
- name: Run tests
run: |
poetry run pytest tests/unittests --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=blacksmith --cov-report=xml --cov-report=html
poetry run pytest tests/functionals
- name: Upload pytest test results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
- name: Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
# Comma-separated list of files to upload
files: coverage.xml