-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.58 KB
/
test.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
51
52
53
54
55
56
57
58
59
# Run test suite.
name: Tests
run-name: Test ${{ github.event.ref}}${{ github.event_name == 'push' && format(' - {0}', github.event.head_commit.message) || '' }}
on:
push:
branches: [ develop ]
workflow_dispatch:
jobs:
download_archives:
uses: ./.github/workflows/web_artifact.yaml
with:
name: 6s-archives
urls: |
[
"https://web.archive.org/web/20220912090811if_/https://rtwilson.com/downloads/6SV-1.1.tar",
"https://web.archive.org/web/20220909154857if_/https://salsa.umd.edu/files/6S/6sV2.1.tar"
]
retention-days: 1
test:
needs: download_archives
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ "windows-latest", "ubuntu-latest", "macos-latest" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Retrieve 6S source archives
uses: actions/download-artifact@v4
with:
name: 6s-archives
path: 6s-archives
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Fortran
uses: awvwgk/setup-fortran@v1.3
- name: Install package and test dependencies
# language=sh
run: |
python -m pip install --upgrade pip
python -m pip install '.[wrapper]' pytest
env:
SIXS_ARCHIVE_DIR: 6s-archives
- name: Run pytest
# language=sh
run: python -m pytest -vv