-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (48 loc) · 1.6 KB
/
Copy pathpython-app-arm64.yml
File metadata and controls
54 lines (48 loc) · 1.6 KB
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
54
# This workflow will run on a GitHub-hosted arm64 runner on Ubuntu 24.04
name: Python application (ubuntu, arm64)
# Every commit on every branch, not just `main`: work lives on long-running
# feature branches here, and a branch nobody runs the tests on is a branch whose
# tests are found broken at merge time. A pull request from a fork triggers
# `pull_request` (a fork's pushes are not pushes to this repo), so both are kept.
on:
push:
pull_request:
permissions:
contents: read
# One run per branch: pushing again supersedes the run already going.
# A run for `main` is never cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-dev libhdf5-dev pkg-config
- name: Install dependencies
run: |
# Use the Python in Ubuntu system
python -m pip install --upgrade pip
pip install -e '.[tests,hdf5]'
- name: Test with pytest
run: |
python -m pytest
- name: Test with pytest (auth on)
run: |
python -m pytest
env:
CATERVA2_SECRET: c2sikrit
- name: Test building docs
run: |
python -m pip install -r doc/requirements.txt
sphinx-build doc doc/html