Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Jul 15, 2024
1 parent 71569aa commit 2205719
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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"
Expand Down

0 comments on commit 2205719

Please sign in to comment.