-
Notifications
You must be signed in to change notification settings - Fork 881
53 lines (46 loc) · 1.46 KB
/
datasets.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
51
52
53
name: Datasets
on:
push:
branches:
- main
paths:
- "datasets/**"
- ".github/workflows/datasets.yml"
- ".github/workflows/datasets-e2e.yml"
pull_request:
branches:
- main
paths:
- "datasets/**"
- ".github/workflows/datasets.yml"
- ".github/workflows/datasets-e2e.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
FLWR_TELEMETRY_ENABLED: 0
defaults:
run:
working-directory: datasets
jobs:
test_core:
runs-on: ubuntu-22.04
strategy:
matrix:
# Latest version which comes cached in the host image can be found here:
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#python
# In case of a mismatch, the job has to download Python to install it.
# Note: Due to a bug in actions/setup-python, we have to put "3.10" in
# quotes as it will otherwise assume "3.1"
python: ['3.9', '3.10', '3.11']
name: Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v4
- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
python-version: ${{ matrix.python }}
- name: Install dependencies (mandatory only)
run: python -m poetry install --all-extras
- name: Test (formatting + unit tests)
run: ./dev/test.sh