diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8eb1f3f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Main Workflow + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: pytest + + - name: Translate issue + uses: usthe/issues-translate-action@v2.7 + with: + token: ${{ secrets.CORRECT_GITHUB_TOKEN }} + source: auto + target: en