summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-05-20 12:21:49 +0200
committerYuval Adam <_@yuv.al>2024-05-20 12:21:49 +0200
commitd2a4279345a77d4136c04baa0d6951d174fdd9c9 (patch)
treea57e27014ad270999a8c488c08f92e589ad8f317 /.github
parent8ee1505b2ebd861526c05fa3479c904aa16c5bc7 (diff)
Migrate CI to poetry
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml28
1 files changed, 11 insertions, 17 deletions
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