Skip to content

Commit a58c2da

Browse files
test: Make minimal tests run on mac and windows (#2347)
1 parent 112ecbf commit a58c2da

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/minimal-tests.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,37 @@ permissions:
1414
jobs:
1515
Check:
1616

17-
runs-on: ubuntu-latest
18-
env:
19-
AWS_DEFAULT_REGION: us-east-1
2017
strategy:
18+
fail-fast: false
2119
matrix:
2220
python-version: [3.8]
21+
platform: [ubuntu-latest, macos-latest, windows-latest]
22+
23+
env:
24+
AWS_DEFAULT_REGION: us-east-1
25+
26+
runs-on: ${{ matrix.platform }}
2327

2428
steps:
2529
- uses: actions/checkout@v3
2630
- name: Set up Python ${{ matrix.python-version }}
2731
uses: actions/setup-python@v4
2832
with:
2933
python-version: ${{ matrix.python-version }}
34+
- name: Upgrade Pip
35+
run: python -m pip install --upgrade pip
36+
- name: Install Poetry
37+
run: python -m pip install poetry
3038
- name: Install Requirements
3139
run: |
32-
python -m pip install --upgrade pip
33-
python -m pip install poetry
34-
poetry config virtualenvs.create false --local
40+
poetry config virtualenvs.in-project true
41+
poetry config virtualenvs.path .venv
3542
poetry install -vvv
3643
- name: Test Metadata
37-
run: pytest tests/unit/test_metadata.py
44+
run: poetry run pytest tests/unit/test_metadata.py
3845
- name: Test Session
39-
run: pytest tests/unit/test_session.py
46+
run: poetry run pytest tests/unit/test_session.py
4047
- name: Test Utils
41-
run: pytest tests/unit/test_utils.py
48+
run: poetry run pytest tests/unit/test_utils.py
4249
- name: Test Moto
43-
run: pytest -n 4 tests/unit/test_moto.py
50+
run: poetry run pytest -n 4 tests/unit/test_moto.py

0 commit comments

Comments
 (0)