Skip to content

Add discussions to readme #151

Add discussions to readme

Add discussions to readme #151

name: OpenCanary Tests
on:
- "push"
- "pull_request"
jobs:
opencanary_tests:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: ["ubuntu-20.04", "ubuntu-22.04", "macos-11", "macos-12"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: "Check out repository code"
uses: "actions/checkout@v3"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "${{ matrix.python-version }}"
- name: Install setuptools
run: pip3 install setuptools>=63.2.0
- name: Install wheel
run: pip3 install wheel
- name: Create package
run: python3 setup.py sdist
- name: Install package
run: pip3 install dist/opencanary-*.tar.gz
- name: Install test dependencies
run: pip3 install -r opencanary/test/requirements.txt
- name: Copy config file
run: cp opencanary/test/opencanary.conf .
- name: Start OpenCanary
run: opencanaryd --start
- name: Run Pytest
run: pytest -s