From 6a88acfea92e636f419cdd8753f83533067457a6 Mon Sep 17 00:00:00 2001 From: Daniil Solynin Date: Sat, 14 Oct 2023 10:14:57 +0300 Subject: [PATCH] add ci --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8a8d752 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Checks + +on: [push] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Display version + run: | + python -c "import sys; print(sys.version)" + - name: Install dependencies + run: | + pip install poetry + poetry config virtualenvs.create false + poetry install --with dev + - name: Ruff check + run: | + ruff . + - name: Black check + run: | + black --check . +# - name: Tests +# run: | +# pytest + - name: Mypy check + run: | + mypy src/ \ No newline at end of file