Skip to content

Commit

Permalink
update tests config
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Jun 22, 2024
1 parent 028c815 commit 001bfe2
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,57 @@
name: Pytest

on:
push:
pull_request:
schedule:
- cron: "0 7 1-28/7 * *"
push:
branches:
- dev

jobs:
build:
runs-on: ubuntu-latest
tests:
runs-on: "ubuntu-latest"
name: Run tests
strategy:
matrix:
python-version:
# - "3.10"
# - "3.11"
- "3.12"

steps:
- uses: actions/checkout@v2
- name: 📥 Checkout the repository
uses: actions/checkout@v4
- name: 🛠️ Set up Python
uses: actions/setup-python@v5
with:
fetch-depth: 2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: 📦 Install requirements
run: |
sudo apt-get update
sudo apt-get -y install language-pack-it
pip install tox tox-gh-actions
- name: Test with tox
- name: 🏃 Test with tox
run: tox
- name: Upload coverage data
uses: "actions/upload-artifact@v2.2.4"
- name: 📤 Upload coverage to Codecov
uses: "actions/upload-artifact@v4"
with:
name: coverage-data
path: "coverage.xml"

coverage:
runs-on: ubuntu-latest
needs: build
needs: tests
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.4
- name: 📥 Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Download coverage data
uses: actions/download-artifact@v2.0.10
- name: 📥 Download coverage data
uses: actions/download-artifact@v4
with:
name: coverage-data
- name: Upload coverage report
uses: codecov/[email protected]
- name: 📤 Upload coverage report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required

0 comments on commit 001bfe2

Please sign in to comment.