Skip to content

Commit

Permalink
Add new job to test.yml for testing installation
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGoeltz authored and torik42 committed Nov 8, 2022
1 parent 82a3ac9 commit 89052c9
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,33 @@ jobs:
- name: Test with module pytest
run: |
python -m pytest tests
test-install:
name: Test import of packages after local install
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@master
with:
path: YaLafi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install pytest
run: python -m pip install pytest
- name: Install YaLafi
run: |
cd YaLafi
pip install .
- name: Check if yalafi is installed and accessible
run: python -c "import yalafi"
- name: Check if yalafi.shell is installed and accessible
run: python -c "import yalafi.shell"
- name: Execute the tests (without adding the pwd to pythonpath)
run: |
cd YaLafi
pytest tests/test_shell/test_shell.py

0 comments on commit 89052c9

Please sign in to comment.