-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (25 loc) · 916 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
on: push
name: Continuous Integration
jobs:
build:
name: PyTest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: docker://python:3.10
uses: docker://python:3.10 # utils is currently 3.10 so we need to use 3.10 in ci
- name: Install poetry
env:
POETRY_VERSION: "1.7.1"
run: pip install poetry==${POETRY_VERSION} poetry-plugin-sort && poetry --version
- 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.10/site-packages "${{ github.workspace }}/env/"
- name: Bootstrap and run tests
working-directory: ${{ github.workspace }}
shell: bash
run: poetry run ./scripts/run_tests.sh