Skip to content

use f-string in save_one_run_results #9

use f-string in save_one_run_results

use f-string in save_one_run_results #9

Workflow file for this run

name: main
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Check code formatting with black
run: |
poetry run isort --check .
poetry run black --check .
- name: Analysing the code with pylint
run: |
poetry run pylint $(git ls-files '*.py')
- name: Run tests
run: poetry run pytest