-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.26 KB
/
2023_EuroSciPy_workflow.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
43
44
45
46
47
48
49
50
name: "2023 EuroSciPy 🇨🇭Continuous Integration Demo"
run-name: "️2023 EuroSciPy CI (${{ github.sha }})"
on:
pull_request:
paths:
- "2023_EuroSciPy/**/*.py"
- "2023_EuroSciPy/**/*.ipynb"
branches:
- main
push:
paths:
- "2023_EuroSciPy/**/*.py"
- "2023_EuroSciPy/**/*.ipynb"
branches:
- main
workflow_dispatch:
defaults:
run:
shell: bash -e {0}
jobs:
build:
name: 🏗️Build with Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.12" ]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
sparse-checkout: 2023_EuroSciPy
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install 2023_EuroSciPy
run: |
cd 2023_EuroSciPy
python -m pip install --upgrade pip
python -m pip install ".[dev]"
- name: Run tests
run:
pytest 2023_EuroSciPy