Merge pull request #3 from Liveston/patch-1 #68
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/CD # pipeline's name that will appear in Github Actions | |
on: # events that trigger our pipeline: push on any branch and release creation | |
push: | |
release: | |
types: [created] | |
jobs: # jobs. We will have two jobs (test and publish) with multiple steps. | |
test: | |
# Our test job will run on ubuntu. | |
# We define matrix strategy for python-version so that | |
# our tests are run on multiple python versions: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image # install poetry | |
uses: abatilo/[email protected] | |
- name: Install dependencies # install all dependencies | |
run: | |
export PYTHONIOENCODING=utf8 | |
poetry install | |
- uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage.xml |