-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (41 loc) · 1.23 KB
/
full_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
name: Full Test and Lint
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
jobs:
ait_build:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Poetry Install
run: |
pipx install poetry
poetry --version
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Caching is currently causing the tox build to fail for 3.10.
# Specifically, the `lint` run claims that it's unable to find
# pre-commit. Oddly enough, the install for 3.10 shows that
# pre-commit is installed and the tox run claims that it doesn't
# need to install anything.
#cache: 'poetry'
- name: Install Package
run: poetry install
- name: Set AIT Config
run: echo "AIT_CONFIG=./config/config.yaml" >> $GITHUB_ENV
- name: "Install dependencies"
run: |
set -xe
python -VV
python -m pip install --upgrade pip
python -m pip install --upgrade "tox-gh-actions<3"
- name: Run Tox
run: tox