From 2c0d42bb6c26c99f04a9d8138c29c6d18b87a5bd Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Tue, 9 Jan 2024 23:54:00 +0100 Subject: [PATCH] add actions --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..61bc237 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Poetry + run: pipx install poetry + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + cache: "poetry" + + - name: Install Python dependencies + run: poetry install + + - name: Test + run: poetry run pytest + + - name: Lint + run: poetry run ruff check + + - name: Format + run: poetry run ruff format --check