Skip to content

Commit

Permalink
cleanup python action
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Mar 4, 2024
1 parent 5a55d26 commit adc04b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,18 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.11"
architecture: "x64"
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install packages
- name: Install system packages
run: sudo apt-get install gcc ipmitool
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
- name: Install python dependencies
run: |
python -m pip install --upgrade pip wheel
pip install pytest pytest-cov
Expand Down
5 changes: 5 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[pytest]
minversion = 8.0
addopts = -ra -q
testpaths =
conpot/tests
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sphinx
libtaxii>=1.1.0
crc16
natsort
scapy==2.4.3rc1
scapy==2.5.0
hpfeeds3
modbus-tk
stix-validator
Expand Down

0 comments on commit adc04b6

Please sign in to comment.