From d2a4279345a77d4136c04baa0d6951d174fdd9c9 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 20 May 2024 12:21:49 +0200 Subject: Migrate CI to poetry --- .github/workflows/build.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2afb106..cb480e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,21 +8,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8] - + python-version: ["3.8", "3.12"] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install pip and testing tools - run: | - python -m pip install --upgrade pip - pip install black pytest - - name: Check formatting with black - run: | - black --check . - - name: Test with pytest - run: | - pytest + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Run image + uses: abatilo/actions-poetry@v2 + - name: Poetry install + run: poetry install + - name: Run build + run: poetry run pytest -- cgit v1.3.1