Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Update test-suite.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kuutsav authored Jun 9, 2024
1 parent 2ee9442 commit a62068b
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
---
name: Test Suite

on:
push:
branches: ["main"]
branches: [main]
pull_request:
branches: ["main"]
branches: [main]

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9"]
python-version: [3.9]
fail-fast: false

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
- name: "Install Poetry"
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
"python -m pip install poetry"
"poetry lock --no-update"
- name: "Install dependencies"
run: "python -m poetry install"
- name: "Run tests"
run: "python -m poetry run pytest --cov=leetcomp"
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run pytest --cov=leetcomp

0 comments on commit a62068b

Please sign in to comment.