From 41cb3fe30986a41ccd89c8433c7459721c79d077 Mon Sep 17 00:00:00 2001 From: RalfG Date: Tue, 16 Apr 2024 22:55:47 +0200 Subject: [PATCH] Update publish workflow to use build or setuptools instead of flit. --- .github/workflows/publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6f0ae07..d02c1d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,21 +17,22 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Install dependencies run: | - python -m pip install --upgrade pip flit pytest + python -m pip install --upgrade pip + pip install build - - name: Build - run: flit build + - name: Build + run: python -m build --sdist --wheel . - - name: Install + - name: Install wheel run: pip install dist/psm_utils-*.whl - - name: Test package + - name: Test wheel run: | pytest