-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (29 loc) · 1002 Bytes
/
tests.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
name: Test MDANSE
on: [push, pull_request]
jobs:
test:
name: Build MDANSE and run tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
python-version: ["3.9", "3.10", "3.11", 3.12]
# os: [ubuntu-20.04, windows-2019, macOS-11, ubuntu-latest, windows-latest, macOS-latest]
if: |
!contains( github.ref, 'legacy' )
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install build packages
run: python -m pip install build wheel setuptools pytest
- name: Install dependencies
run: (cd MDANSE && python -m pip install -r requirements.txt)
- name: install MDANSE
run: (cd MDANSE && python -m pip install .)
- name: run unit tests
run: |
cd MDANSE/Tests/UnitTests
python -m pytest