-
-
Notifications
You must be signed in to change notification settings - Fork 591
50 lines (41 loc) · 1.16 KB
/
test-suite.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
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow will install Python dependencies, download Docker images, and test every script in the repo
name: Glotter
on:
push:
branches: [ main ]
pull_request:
branches:
- 'main'
paths:
- 'archive/**'
- 'test/**'
- '.glotter.yml'
- '.github/workflows/test-suite.yml'
- 'pyproject.toml'
- 'poetry.lock'
- '!**/README.md'
jobs:
testing:
name: "Test Suite"
strategy:
fail-fast: true
matrix:
python-version: ["3.11"]
poetry-version: ["1.8.3"]
os: [ubuntu-latest]
num_batches: [6]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run Poetry Image
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install Dependencies
run: poetry install
- name: Download Docker images, Test All Sample Programs, Remove Docker Images
run: poetry run glotter batch ${{ matrix.num_batches }} --parallel --remove