From 2205719dacd26dc2d597c502341671a7177871fe Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Mon, 15 Jul 2024 20:59:47 +0200 Subject: [PATCH] s --- .github/workflows/ci.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae77cfe96a..725faf0b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,10 +82,10 @@ jobs: cache: pip - run: | python -m pip install --upgrade pip pipx - - run: pipx --version + pipx --version - name: Build the wheel - run: pipx run build --wheel - - name: Check metadata + run: pipx run build + - name: Check the metadata run: pipx run twine check --strict dist/* - name: Install package from built wheel run: python -m pip install dist/rdmo*.whl @@ -96,7 +96,6 @@ jobs: echo "$ python -m pip show rdmo" >> $GITHUB_STEP_SUMMARY python -m pip show rdmo >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY - - name: Upload wheel as artifact uses: actions/upload-artifact@v4 with: @@ -114,26 +113,33 @@ jobs: db-backend: [mysql, postgres] name: "Test (Python: ${{ matrix.python-version }}, DB: ${{ matrix.db-backend }})" steps: + - run: ls -R - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: pip + - name: Download wheel + uses: actions/download-artifact@v4 + with: + name: wheel + path: dist + - run: ls -R - name: Install Dependencies run: | sudo apt update sudo apt install --yes pandoc texlive-xetex librsvg2-bin python -m pip install --upgrade pip pandoc --version - - name: Install rdmo[mysql] and start mysql + - name: Install rdmo[mysql] from wheel and start mysql run: | - python -m pip install --editable .[ci,mysql] + python -m pip install "$(ls dist/*.whl)[ci,mysql]" sudo systemctl start mysql.service if: matrix.db-backend == 'mysql' - - name: Install rdmo[postgres] and start postgresql + - name: Install rdmo[postgres] from wheel and start postgresql run: | - python -m pip install --editable .[ci,postgres] + python -m pip install "$(ls dist/*.whl)[ci,postgres]" sudo systemctl start postgresql.service pg_isready sudo -u postgres psql --command="CREATE USER postgres_user PASSWORD 'postgres_password' CREATEDB"