Skip to content

Commit

Permalink
ci: updated auto test with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhikharevAl committed Oct 27, 2024
1 parent 18933bc commit 5492c9d
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/auto_tests.yml
Original file line number Diff line number Diff line change
@@ -9,24 +9,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.27"
enable-cache: true
cache-dependency-glob: "requirements**.txt"

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.12.7'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
uv pip install --system -r requirements.txt
- name: Ensure browsers are installed
run: python -m playwright install --with-deps
run: uv pip install --system playwright && python -m playwright install --with-deps

- name: Run your tests
env:
PARABANK_USERNAME: ${{ secrets.PARABANK_USERNAME }}
PARABANK_PASSWORD: ${{ secrets.PARABANK_PASSWORD }}
run: pytest --alluredir=allure-results
run: uv run pytest --alluredir=allure-results

- uses: actions/upload-artifact@master
with:

0 comments on commit 5492c9d

Please sign in to comment.