-
Notifications
You must be signed in to change notification settings - Fork 110
47 lines (39 loc) · 1.06 KB
/
pytest.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
name: pytest
on:
push:
# tags-ignore:
# - v*.*.*
jobs:
test:
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: [3.9]
include:
- os: [ubuntu-latest]
# Control the os/python builds
name: Pytest ${{ matrix.os }} x ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 2
# Installs environment
- name: Install Conda and Environment
uses: ./.github/actions/install-conda
with:
python-version: ${{ matrix.python-version }}
- name: Run Pytest
uses: ./.github/actions/run-test
# Unused --------------------------
# - name: Checkout cache
# uses: actions/cache@v3
# with:
# path: ~/conda_pkgs_dir
# # path: ${{ env.pythonLocation }}
# key: conda-${{ runner.os }}-${{ inputs.python-version}}-${{ hashFiles('environment.yml') }}
# id: cache
# if: ${{ steps.cache.outputs.cache-hit != 'true' }}