Merge pull request #270 from Huber1/master #449
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install pylint | |
run: | | |
sudo apt update -y | |
python -m pip install --upgrade pip | |
pip install pylint | |
- uses: pre-commit/[email protected] | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install -y libxml2 libxml2-dev libxslt1-dev | |
python -m pip install --upgrade pip | |
pip install pytest poetry lxml pyopenmensa deepl | |
- name: Test with pytest | |
run: pytest | |
env: | |
PYTHONPATH: src/ |