-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.6 KB
/
latest-stack-test.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
---
name: latest stack test
on:
push:
branches:
- main
schedule:
- cron: '35 6 * * *'
jobs:
test-alan:
# We have to avoid Python 3.12 (3.12.8) as the GitHub Action
# always generates an argparse error when we try and run
# the awx command from within the 'behave' tests.
strategy:
matrix:
python-version:
- '3.11'
runs-on: ubuntu-latest
environment: behaviour-stack-alan
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true
- name: Install Dependencies
run: poetry install --no-interaction --with dev
- name: Static Analysis
run: |
source .venv/bin/activate
pre-commit run --all-files
- name: Behaviour Tests
working-directory: ./bdd
run: |
source ../.venv/bin/activate
behave
env:
CONTROLLER_HOST: https://${{ secrets.BEHAVIOUR_AWX_HOSTNAME }}
CONTROLLER_USERNAME: ${{ secrets.BEHAVIOUR_AWX_USERNAME }}
CONTROLLER_PASSWORD: ${{ secrets.BEHAVIOUR_AWX_PASSWORD }}
BEHAVIOUR_STACK_USERNAME: ${{ secrets.BEHAVIOUR_STACK_USERNAME }}
BEHAVIOUR_STACK_PASSWORD: ${{ secrets.BEHAVIOUR_STACK_PASSWORD }}
BEHAVIOUR_STACK_CLIENT_ID_SECRET: ${{ secrets.BEHAVIOUR_STACK_CLIENT_ID_SECRET }}