Replace Travis with Github Actions

This commit is contained in:
2021-07-03 15:19:13 +02:00
parent 22091fc8c3
commit befa2eefaa
2 changed files with 18 additions and 18 deletions

18
.github/workflows/2019.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: AOC 2019 test suite
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r 2019/requirements.txt
- name: Run Pytest
run: pytest 2019

View File

@@ -1,18 +0,0 @@
dist: bionic
language: python
python:
- "3.9"
# Custom directory, for the correct year
before_install:
- cd 2019
- python -m pip install --upgrade pip
script: pytest
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log