-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (29 loc) · 980 Bytes
/
ci.yaml
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
on: push
name: Continuous Integration
jobs:
build:
name: PyTest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install poetry
env:
POETRY_VERSION: "1.7.1"
run: pip install poetry==${POETRY_VERSION} poetry-plugin-sort && poetry --version
- name: Use Python 3.12 for Poetry
run: poetry env use python3.12
- name: Install requirements
run: poetry install
- name: Copy site-packages in workspace
working-directory: ${{ github.workspace }}
shell: bash
run: |
mkdir -p "${{ github.workspace }}/env/" && cp -fR $(poetry env list | poetry env info -p)/lib/python3.12/site-packages "${{ github.workspace }}/env/"
- name: Bootstrap and run tests
working-directory: ${{ github.workspace }}
shell: bash
run: poetry run ./scripts/run_tests.sh