Skip to content

Commit

Permalink
add python job back
Browse files Browse the repository at this point in the history
  • Loading branch information
ztsv-av committed Dec 9, 2024
1 parent 09cf483 commit 4ffe21d
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/github-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main # run tests when a pull request targets the main branch

jobs:
docker-test:
docker-test: # docker
runs-on: ubuntu-latest

steps:
Expand All @@ -23,4 +23,34 @@ jobs:
run: docker build -t reproducible_dl .

- name: Run tests inside Docker container
run: docker run --rm reproducible_dl pytest
run: docker run --rm reproducible_dl pytest

python-test: # python
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # test on both Ubuntu and Windows
python-version: ['3.9.19']
python-version: ['3.9']

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests

0 comments on commit 4ffe21d

Please sign in to comment.