Skip to content

Commit 59f874e

Browse files
fixed .yml and Dockerfile
1 parent 91b498b commit 59f874e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ jobs:
1515
- name: Checkout Code
1616
uses: actions/checkout@v3
1717

18+
- name: Cache pip
19+
uses: actions/cache@v3
20+
with:
21+
path: ~/.cache/pip
22+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
23+
restore-keys: |
24+
${{ runner.os }}-pip-
25+
26+
- name: Clean up disk space
27+
run: |
28+
sudo rm -rf /usr/share/dotnet
29+
sudo rm -rf /opt/ghc
30+
sudo rm -rf /usr/local/lib/android
31+
sudo apt-get clean
32+
1833
- name: Build Docker Image
1934
run: docker build -t classifier .
2035

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ RUN pip3 install -r requirements.txt
3232
WORKDIR /usr/src/app
3333

3434
# Run the tests to ensure everything is working correctly
35-
# RUN make test
35+
RUN make test
3636

3737
# Set the entrypoint to run the pipeline via Makefile.run
3838
ENTRYPOINT ["make", "-f", "Makefile.run"]
3939

4040
# Default command to run the pipeline with default input/output paths
4141
CMD ["run", "INPUT_DIR=input_raw"]
42+

0 commit comments

Comments
 (0)