-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.1 KB
/
warnings-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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Run Warnings Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
warnings:
name: Warnings Tests
env:
ENV_NAME: hera_qm_tests
PYTHON: ${{ matrix.python-version }}
OS: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
fail-fast: false
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
- name: Get Miniconda (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda.sh;
bash $HOME/miniconda.sh -b -p $HOME/miniconda
- name: Setup Environment
run: |
export PATH="$HOME/miniconda/bin:$PATH"
./ci/install_conda.sh
- name: Install
run: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate ${ENV_NAME}
pip install .
- name: Run Tests
run: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate $ENV_NAME
pytest -W error