-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (38 loc) · 1.12 KB
/
py-intg-tests.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
# Workflow that runs Python integration tests
name: Run Python Integration Tests
on:
push:
branches:
- main
pull_request:
jobs:
test-on-linux:
name: Python Unit Tests on Linux
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Git & Configure Auth
run: |
sudo apt-get update && sudo apt-get install git
git config --global user.email "[email protected]"
git config --global user.name "user"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV
- name: Install dependencies
run: |
poetry install --with test
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run tests
run: |
poetry run pytest ./tests/integration