Skip to content

remove unacessary test folder #3

remove unacessary test folder

remove unacessary test folder #3

Workflow file for this run

name: Python dev
on:
pull_request:
push:
branches:
- main
- master # Just in case the repo has the deprecated main branch name
jobs:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10"]
name: Testing Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
run: make install-poetry
- name: Pypi authentication
run: |
python -m poetry config virtualenvs.in-project false
python -m poetry config repositories.owkin https://pypi.owkin.com/simple/
python -m poetry config http-basic.owkin "${{ secrets.PYPI_USERNAME }}" "${{ secrets.PYPI_PASSWORD }}"
python -m poetry config repositories.seaborn_owkin https://github.com/owkin/seaborn_owkin.git
python -m poetry config http-basic.seaborn_owkin "${{ secrets.GIT_USERNAME }}" "${{ secrets.GIT_TOKEN }}"
- name: Install dependencies
run: poetry install --all-extras --with=testing
- name: Testing
run: poetry run make test
linting:
runs-on: ubuntu-latest
name: Test Linting
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install Poetry
run: make install-poetry
- name: Pypi authentication
run: |
python -m poetry config virtualenvs.in-project false
python -m poetry config repositories.owkin https://pypi.owkin.com/simple/
python -m poetry config http-basic.owkin "${{ secrets.PYPI_USERNAME }}" "${{ secrets.PYPI_PASSWORD }}"
python -m poetry config repositories.seaborn_owkin https://github.com/owkin/seaborn_owkin.git
python -m poetry config http-basic.seaborn_owkin "${{ secrets.GIT_USERNAME }}" "${{ secrets.GIT_TOKEN }}"
- name: Install dependencies
run: poetry install --all-extras --with=linting,docs
- name: Test pre-commit checks
run: poetry run make pre-commit-checks
- name: Test linting
run: poetry run make lint
- name: Test typing
run: poetry run make typing
- name: Test docs
run: poetry run make test-docs