-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.39 KB
/
ci-ubuntu.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
name: CI-Ubuntu
on:
push:
branches: [ '*' ]
paths-ignore: # Don't trigger on files that are updated by the CI
- README.md
pull_request:
branches: [ '*' ]
schedule:
# * is a special character in YAML so you have to quote this string
# run at 02:01 on the 3rd of each month
- cron: '1 2 3 * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install the package
run: |
# export SETUPTOOLS_ENABLE_FEATURES="legacy-editable"
python -m pip install meson-python>=0.15.0 meson ninja
python -m pip install --no-build-isolation --editable .
# Show f2py compiler info for debug
f2py -c --help-fcompiler
- name: Run tests
run: |
python -m pypolsys.test