-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (67 loc) · 2.2 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test-windows-executable-build:
name: Build Windows Executable
uses: ./.github/workflows/build-windows-exe.yml
test-create-windows-installer:
name: Create Windows Installer
needs: test-windows-executable-build
uses: ./.github/workflows/create-windows-installer.yml
test-linux-executable-build:
name: Build Linux Executable
uses: ./.github/workflows/build-linux-exe.yml
test-macos-executable-build:
name: Build MacOS Executable
uses: ./.github/workflows/build-macos-exe.yml
test-conda:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9", "3.10"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
source: ["conda", "pip"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "${{ matrix.python }}"
miniforge-variant: Mambaforge
- name: Install Dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment-dev.yml
mamba list
if: ${{ matrix.source == 'conda' }}
- name: Install Autotag-Metadata (conda)
shell: bash -l {0}
run: |
pip install --no-dependencies .
if: ${{ matrix.source == 'conda' }}
- name: Install Autotag-Metadata (pip)
shell: bash -l {0}
run: |
pip install .
if: ${{ matrix.source == 'pip' }}
# - name: Doctest
# shell: bash -l {0}
# run: |
# pytest --doctest-modules autotag_metadata
# if: ${{ matrix.source == 'conda' }}
# - name: Byexample
# shell: bash -l {0}
# run: |
# mamba install -y byexample
# byexample -l shell,python -o +norm-ws --timeout=30 README.md
# # byexample is not available for Windows
# # the exact numerical output of commands differs between Linux & macOS
# if: ${{ matrix.os == 'ubuntu-latest' && matrix.source == 'conda' }}