Skip to content

feat: Add "Last modified" column to the directory listings of log fil… #277

feat: Add "Last modified" column to the directory listings of log fil…

feat: Add "Last modified" column to the directory listings of log fil… #277

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
tests:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install requirements
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Run unit tests
run: |
pytest scrapyd --cov=./ --cov-report=xml
- name: Run integration tests
run: |
printf "[scrapyd]\nusername = hello12345\npassword = 67890world\n" > scrapyd.conf
mkdir logs
scrapyd > scrapyd.log 2>&1 &
sleep 1
pytest integration_tests
cat scrapyd.log
kill %%
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: false
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
# https://github.com/codecov/codecov-action/issues/476
# path_to_write_report: ./coverage/codecov_report.txt
verbose: true