-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.26 KB
/
python-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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