Update opencanary/test/module_test.py #160
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |