-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (34 loc) · 1.45 KB
/
wirecell-python-unit-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
on: [push]
jobs:
Unit-Tests:
runs-on: ubuntu-latest
steps:
- name: Print job info
run: echo "This job was automatically triggered by a ${{ github.event_name }} event. It is now running on a ${{ runner.os }} server hosted by GitHub! The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Print Architecture
run: uname -m
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.9.13'
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1
- name: Check out the commit that triggered this job
uses: actions/checkout@v4
- name: Check out wire-cell-data
uses: actions/checkout@v4
with:
repository: WireCell/wire-cell-data
path: wire-cell-data
- name: Install wire-cell-python & run the tests
run: |
export WIRECELL_PATH=$GITHUB_WORKSPACE/wire-cell-data/
python -m venv venv/
source venv/bin/activate
python -m pip install pip==22.0.4
python -m pip install -e .
./test/gen-test-empty-commands.sh
bats test/test-empty-commands.bats
pytest wirecell/