Skip to content

Merge pull request #40 from cblessing24/rework_services #91

Merge pull request #40 from cblessing24/rework_services

Merge pull request #40 from cblessing24/rework_services #91

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-20.04
strategy:
matrix:
linter: ["black", "mypy", "ruff"]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Lint code
run: touch .env && docker compose run ${{ matrix.linter }}
test:
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Test code
run: touch .env && docker compose run tests_with_coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
publish:
if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'sinzlab'
needs: [lint, test]
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build distribution artifacts
run: touch .env && docker compose run build
- name: Upload distribution packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}