Skip to content

Fix/pytorch vulnerability update #203

Fix/pytorch vulnerability update

Fix/pytorch vulnerability update #203

Workflow file for this run

name: tests
on:
- push
- pull_request
jobs:
unit_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Run tests
run: poetry run pytest
- uses: actions/upload-artifact@v3
with:
name: coverage-report_${{ matrix.python-version }}.xml
path: coverage.xml
retention-days: 30
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Run ruff
run: poetry run ruff check .
codecov:
needs: unit_test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get the latest coverage generated
uses: actions/download-artifact@v3
with:
name: coverage-report_3.11.xml
path: coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
fail_ci_if_error: true
flags: unit_tests
name: codecov-aisee
verbose: true