Skip to content

Commit

Permalink
add pypi-test action
Browse files Browse the repository at this point in the history
  • Loading branch information
quillcraftsman committed Mar 13, 2024
1 parent 7793ea1 commit 912a881
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
name: Deploy Documentation to GitHub pages

on:
release:
types: [published]

workflow_run:
workflows: [ "Upload Python Package To pypi" ]
branches: [ "main" ]
types:
- completed
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/pypi-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test PyPi package

on:
workflow_run:
workflows: [ "Upload Python Package To pypi" ]
branches: [ "main" ]
types:
- completed
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3

Check warning on line 20 in .github/workflows/pypi-tests.yml

View workflow job for this annotation

GitHub Actions / build

20:5 [indentation] wrong indentation: expected 6 but found 4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Delete local package
run: |
rm -rf ./replay_wizard
- name: Install package from PyPi
run: |
python -m pip install --upgrade pip
pip install -U replay-wizard
- name: Run pytest with xvfb
uses: coactions/setup-xvfb@v1
with:
run: make test

0 comments on commit 912a881

Please sign in to comment.