Skip to content

Update python-app.yml #21

Update python-app.yml

Update python-app.yml #21

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Continuous Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Ubuntu packages
run: |
sudo apt-get update
sudo apt-get -y install python3-dev libevent-dev default-jre
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "3.2"
- name: Run pandoc
run: pandoc --version
- name: Install and configure Poetry
run: |
python -m pip install --upgrade pip
pip install poetry pytest
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
poetry config virtualenvs.in-project true
- name: Install chapisha dependencies
run: |
poetry install --no-interaction
- name: Test with pytest
run: |
poetry run pytest