Merge pull request #57 from christoph-blessing/fix_issue56 #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |