-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.23 KB
/
gh-ci.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
60
name: GH Actions CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# 3 am Tuesdays and Fridays
- cron: "0 3 * * 2,5"
concurrency:
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
unittests:
if: "github.repository == 'MDAnalysis/mda-xdrlib'"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install deps
run: |
python -m pip install wheel coverage
- name: install package
run: |
python -m pip install -e .
- name: run tests
run: |
coverage run -m unittest discover
coverage xml
- name: test imports
working-directory: ../
run: |
python -Ic "from mda_xdrlib import xdrlib"
- uses: codecov/codecov-action@v3
with:
files: coverage.xml
fail_ci_if_error: true
verbose: true