From 3c87a082c5c9c660edf909683dd169eff126de17 Mon Sep 17 00:00:00 2001 From: 80sVectorz <66908776+80sVectorz@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:29:06 +0200 Subject: [PATCH] Update python-package.yml --- .github/workflows/python-package.yml | 39 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5f3b1a7..e7ec621 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,23 +19,22 @@ jobs: python-version: ["3.10", "3.11"] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Lint/format with Black - - uses: psf/black@stable - with: - options: "--check --verbose" - src: "./src" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - python -m build ; python -m pip install ./dist/*tar.gz - - name: Test with pytest - run: | - pytest + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Lint/format with Black + - uses: psf/black@stable + with: + options: "--check --verbose" + src: "./src" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m build ; python -m pip install ./dist/*tar.gz + - name: Test with pytest + run: | + pytest