-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 1.09 KB
/
tox.yml
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
name: Tox Test
on:
pull_request: # This will trigger the workflow on all pull requests
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8.18, 3.10.15] # Match the Python versions in your tox envlist
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
echo "Upgrading pip..."
python -m pip install --upgrade pip
echo "Installing poetry..."
pip install poetry # Ensure poetry is installed as it's used in tox.ini
echo "Installing project dependencies with poetry..."
poetry install --no-root # Install all dependencies including dev-dependencies
- name: Run Tox
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CONNECTOR_TESTS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CONNECTOR_TESTS_SECRET_ACCESS_KEY }}
run: |
echo "Running Tox tests... $AWS_ACCESS_KEY_ID"
poetry run tox