-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (50 loc) · 1.32 KB
/
test-with-warnings.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
name: Warnings Test
on: [pull_request]
jobs:
tests:
name: Test With Warnings
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
env:
ENV_NAME: testing
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
auto-update-conda: true
channels: conda-forge,defaults
channel-priority: true
python-version: ${{ matrix.python-version }}
environment-file: ci/${{ env.ENV_NAME }}.yaml
activate-environment: ${{ env.ENV_NAME }}
- name: Conda Info
run: |
conda info
python --version
- name: Install Test Deps
run: |
pip install .[test]
conda list
- name: Install Poetry
run: |
pipx install poetry
poetry --version
- name: Install ska-ost-array
run: |
git clone https://gitlab.com/ska-telescope/ost/ska-ost-array-config.git
cd ska-ost-array-config
poetry install
cd ..
- name: Run Tests
run: |
python -m pytest -W error