diff options
| author | Adam Janovsky | 2022-04-04 21:26:59 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2022-04-04 21:26:59 +0200 |
| commit | 0cedcd01c9e7db3f797be98914eec5a8393602e5 (patch) | |
| tree | 693cdd31edfa773169778515586c0d9d30866413 /.github/workflows | |
| parent | b0e4e9ed1a25f163dab45980cc5a32bcb0dacee9 (diff) | |
| download | sec-certs-0cedcd01c9e7db3f797be98914eec5a8393602e5.tar.gz sec-certs-0cedcd01c9e7db3f797be98914eec5a8393602e5.tar.zst sec-certs-0cedcd01c9e7db3f797be98914eec5a8393602e5.zip | |
reorganize requirements
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/tests.yml | 7 |
2 files changed, 5 insertions, 12 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d49b7224..1c9741da 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,13 +14,9 @@ jobs: - name: Install external dependencies run: sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev -y - name: Install python dependencies - run: pip install -r requirements.txt - - name: Install mypy and types run: | - pip install mypy - python3 -m pip install types-PyYAML - python3 -m pip install types-python-dateutil - python3 -m pip install types-requests + pip install -r requirements/requirements.txt + pip install -r requirements/dev_requirements.txt - name: Run mypy run: mypy . black: @@ -37,7 +33,7 @@ jobs: python-version: 3.8 - uses: isort/isort-action@master with: - requirementsFiles: "requirements.txt dev_requirements.txt" + requirementsFiles: "requirements/requirements.txt requirements/dev_requirements.txt" flake8-lint: runs-on: ubuntu-latest name: Flake8 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 84c8bc12..3cba8d28 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,6 @@ on: env: DEBIAN_FRONTEND: noninteractive - jobs: run-test: runs-on: ubuntu-latest @@ -24,11 +23,9 @@ jobs: with: python-version: '3.8' - name: Install python dependencies - run: pip install -r requirements.txt + run: pip install -r requirements/requirements.txt - name: Install pytest and package run: | - pip install pytest - pip install pytest-cov - pip install ".[dev,test]" + pip install -r requirements/test_requirements.txt - name: Run tests run: pytest --cov=sec_certs tests |
