diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index bd469f2..e0c2c86 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -28,7 +28,7 @@ jobs: fi echo "version=${PEP440_VERSION}" | tee -a $GITHUB_OUTPUT - check-mkdocs: + check: runs-on: ubuntu-latest steps: - name: Checkout @@ -36,22 +36,15 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.x" cache: pip # caching pip dependencies - - name: Install project and dependent tools - run: | - python -m pip install -e . -r requirements.txt - name: Check with ruff run: | - python -m ruff check . - - name: MkDocs gh-deploy - run: | - git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com' - python -m mkdocs gh-deploy + pip install ruff && ruff check . build: runs-on: ubuntu-latest - needs: [get-version-pep440, check-mkdocs] + needs: [get-version-pep440, check] if: needs.get-version-pep440.outputs.version != '' steps: - name: Checkout @@ -59,12 +52,12 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.x" cache: "pip" # caching pip dependencies - name: Install builder run: pip install build - name: Build Python distribution - run: python -m build + run: pyproject-build - name: Upload dist to artifact uses: actions/upload-artifact@v4 with: