forked from MCresearch/DeePKS-L
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.27 KB
/
Copy pathtest.yml
File metadata and controls
53 lines (45 loc) · 1.27 KB
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
name: Integration Test and Unit Test
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: PyTest
runs-on: ubuntu-latest
steps:
- name: Checkout Github
uses: actions/checkout@v4
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.12
channels: deepmodeling,conda-forge,defaults
channel-priority: true
activate-environment: test-env
environment-file: environment.yml
use-mamba: true
- name: Run smoke/unit/integration/regression tests
shell: bash -l {0}
env:
ENABLE_PYABACUS_TESTS: "0"
run: |
pytest -q -m "not pyabacus" tests/smoke tests/unit tests/integration tests/regression
# - name: Archive Pytest test report
# uses: actions/upload-artifact@v4
# with:
# name: SuperTest-test-report
# path: report
# - name: Upload Pytest report to GitHub
# uses: actions/upload-artifact@v4
# with:
# name: Pytest-test-report
# path: report