diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ebeda39..c55d2ea 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,14 +6,13 @@ on: - '*' jobs: - build_and_deploy_docs: + docs: runs-on: ubuntu-latest steps: - - name: Checkout the repository - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3.7 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.7 @@ -23,10 +22,10 @@ jobs: pip install -r ./requirements/requirements-doc.txt - name: Generate the docs locally in CI - run: pdoc ./crowdin_api/ --html --config show_source_code=False --force --output-dir docs + run: pdoc ./crowdin_api/ --html --config show_source_code=False --force --output-dir docs - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4.3.3 + uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages - folder: docs/crowdin_api \ No newline at end of file + folder: docs/crowdin_api diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 3a83de8..632491e 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -9,17 +9,20 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Set up Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.7 + - name: Install pypa/build run: >- python -m pip install --user setuptools==66.0.0 wheel==0.38.4 twine==4.0.2 build --user + - name: Build a binary wheel and a source tarball run: >- python -m @@ -27,8 +30,9 @@ jobs: --sdist --wheel --outdir dist/ + - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4d187fd..bb8f430 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -18,23 +18,26 @@ jobs: python-version: [ 3.7, 3.8, 3.9 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r ./requirements/requirements-dev.txt + - name: Lint with flake8 - run: | - flake8 . --count --show-source --statistics --exit-zero + run: flake8 . --count --show-source --statistics --exit-zero + - name: Test with pytest - run: | - pytest + run: pytest + - name: Comment coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true