Skip to content

New reverse-existence implementation #753

New reverse-existence implementation

New reverse-existence implementation #753

Workflow file for this run

name: "CI: Lint & Test"
on: [push, pull_request]
jobs:
lint:
name: Lint
if: "!(contains(github.event.head_commit.message, '[skip_ci]'))"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
matrix:
python: ["3.10"]
steps:
- name: "[INIT] Checkout repository"
uses: actions/checkout@v3
- name: "[INIT] Install Python ${{ matrix.python }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: "[INIT] Install Poetry"
uses: snok/install-poetry@v1.3
- name: "[INIT] Restore dependency cache"
id: cache-restore
uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.cache/pypoetry
key: ${{ runner.os }}-py${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
- name: "[INIT] Install dependencies"
if: ${{ !steps.cache-restore.outputs.cache-hit }}
run: pip install poetry && poetry install
- name: "[EXEC] Lint"
run: ./utils ci lint
test-cover:
name: Test & Cover
if: "!(contains(github.event.head_commit.message, '[skip_ci]'))"
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "pypy3.9", "pypy3.10"]
os: [ubuntu-22.04, macos-12, windows-2022]
steps:
- name: "[INIT] Checkout repository"
uses: actions/checkout@v3
- name: "[INIT] Install Python ${{ matrix.python }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: "[INIT] Install Poetry"
uses: snok/install-poetry@v1.3
- name: "[INIT] Restore dependency cache"
id: cache-restore
uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.cache/pypoetry
key: ${{ runner.os }}-py${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
- name: "[INIT] Install dependencies"
if: ${{ !steps.cache-restore.outputs.cache-hit }}
run: pip install poetry && poetry install
- name: "[EXEC] Test"
run: ./utils ci test --coverage
- name: "[EXEC] Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
flags: ${{ matrix.os }},py${{ matrix.python }}