-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (51 loc) · 1.71 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and test project
on:
workflow_call:
inputs:
python-version:
type: string
required: true
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-20.04
environment: aws
steps:
- name: SCM Checkout
uses: actions/checkout@v4
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
large-packages: false
- name: Free disk space by removing large directories
run: |
sudo rm -rf /usr/local/graalvm/
sudo rm -rf /usr/local/.ghcup/
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/share/chromium
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /opt/ghc
- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env
with:
python-version: ${{ inputs.python-version }}
- name: Build Poetry
run: poetry build
- name: Install project whl
run: pip install dist/*.whl
- name: Install Lua dependencies
run: |
sudo apt-get install luarocks
sudo luarocks install --only-deps *.rockspec
- name: Run Lua unit tests and static code analyzer
run: poetry run poe lua-tests
- name: Run unit tests
run: poetry run pytest tests/unit_tests
- name: Run integration tests
env:
SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }}
SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }}
SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }}
run: poetry run pytest --backend=all tests/integration_tests