-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 967 Bytes
/
testing.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
name: Run Resolve test case
on:
workflow_call:
pull_request:
branches:
- main
paths:
- 'src/**'
- 'pyproject.toml'
permissions:
id-token: write
contents: read
jobs:
test:
runs-on: ubuntu-latest
container: continuumio/miniconda3
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install OS dependencies (apt-get)
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc python3-dev
- name: Create NMT environment (Miniconda)
run: |
conda env create -q -f environment-rtd.yml
conda update -q -y -n nmt --all
- name: Install pytest (Miniconda)
run: |
conda run -n nmt --no-capture-output conda install -q pytest
- name: Run pytest
run: |
conda run -n nmt --no-capture-output --cwd tests/resolve/ pytest test_run_opt.py