generated from clearbluejar/ghidra-python-vscode-devcontainer-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (33 loc) · 1.13 KB
/
pytest-devcontainer.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Pytest Python Package Devcontainer
on:
push:
branches: [ "main", "fix-workflows" ]
paths:
- 'ghidriff/**'
- 'tests/**'
- '.github/workflows/pytest-devcontainer.yml'
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test with pytest on devcontainer
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/clearbluejar/ghidra-python
push: never
#platform: linux/amd64,linux/arm64
runCmd: |
env
ls /usr/local/include/
pip install --upgrade pip
# install package and testing
pip install -e ".[testing]"
# download data to shared test data
if [ ! -d "tests/data" ]; then git clone https://github.com/clearbluejar/ghidriff-test-data.git tests/data; fi
pytest -rA